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
| Name | Kind | Line |
|---|---|---|
| TVideoState | enum | 77 |
| videoStopped | enum value | 77 |
| videoPlaying | enum value | 77 |
| videoPaused | enum value | 77 |
| TVideoWidget | class | 81 |
| Create | constructor | 140 |
| Destroy | destructor | 141 |
| Paint | procedure | 138 |
| Pause | procedure | 145 |
| Play | procedure | 143 |
| Stop | procedure | 147 |
| AutoRestart | property | 158 |
| Available | property | 173 |
| Duration | property | 154 |
| Effect | property | 169 |
| EffectError | property | 171 |
| FileName | property | 150 |
| HasAudio | property | 161 |
| Muted | property | 166 |
| OnPlayComplete | property | 175 |
| Position | property | 152 |
| State | property | 156 |
| Volume | property | 164 |