Download Now

    Reference Codebot.Render.Widgets.Video.pas

    Part of the Codebot Render package

    Each version implies all earlier versions

    The Codebot.Render.Widgets.Video unit defines TVideoWidget, which is a widget that plays a video from a file or a URL using libmpv. It can play, pause, stop, and seek, and it scales the video to fit while keeping its aspect ratio. The sound is played by libmpv directly, and the widget provides volume and mute settings for it. OnPlayComplete is invoked when the video ends, and AutoRestart plays the video again from the start.

    The unit is empty unless videowidget is defined in render.inc.

    Items 23 items

    NameKindLine
    TVideoStateenum77
    videoStoppedenum value77
    videoPlayingenum value77
    videoPausedenum value77
    TVideoWidgetclass81
    Createconstructor140
    Destroydestructor141
    Paintprocedure138
    Pauseprocedure145
    Playprocedure143
    Stopprocedure147
    AutoRestartproperty158
    Availableproperty173
    Durationproperty154
    Effectproperty169
    EffectErrorproperty171
    FileNameproperty150
    HasAudioproperty161
    Mutedproperty166
    OnPlayCompleteproperty175
    Positionproperty152
    Stateproperty156
    Volumeproperty164