TTMSFNCWXVideoPlayer Class
Web-based video player control. Embeds a video surface that supports playback control, seeking, picture-in-picture mode, and a poster image.
API unit family: TMSFNCWXVideoPlayer
Inherits from: TTMSFNCWXCustomVideoPlayer
Syntax
TTMSFNCWXVideoPlayer = class(TTMSFNCWXCustomVideoPlayer)
Remarks
This is the published, design-time-ready component. Set TTMSFNCWXCustomVideoPlayer.Poster for a placeholder image and handle TTMSFNCWXCustomVideoPlayer.OnVideoInitialized before driving playback.
Properties
| Name | Description |
|---|---|
| AutoPictureInPicture | When True, the video automatically enters picture-in-picture mode when the user switches away from the page or tab. (inherited from TTMSFNCWXCustomVideoPlayer) |
| DisablePictureInPicture | When True, picture-in-picture mode is disabled and the user cannot pop the video out into a floating window. (inherited from TTMSFNCWXCustomVideoPlayer) |
| PictureInPicture | Gets or sets whether the video is currently shown in picture-in-picture mode. Set to True to request the floating window, False to return to inline playback. (inherited from TTMSFNCWXCustomVideoPlayer) |
| Poster | Specifies the image shown in place of the video before playback starts or while no frame is available. (inherited from TTMSFNCWXCustomVideoPlayer) |
Methods
| Name | Description |
|---|---|
| ForwardVideo | Advances the current playback position forward by the given number of seconds. (inherited from TTMSFNCWXCustomVideoPlayer) |
| RewindVideo | Moves the current playback position backward by the given number of seconds. (inherited from TTMSFNCWXCustomVideoPlayer) |
Events
| Name | Description |
|---|---|
| OnPictureInPictureEnter | Occurs after the video enters picture-in-picture mode. (inherited from TTMSFNCWXCustomVideoPlayer) |
| OnPictureInPictureLeave | Occurs after the video leaves picture-in-picture mode and returns to inline playback. (inherited from TTMSFNCWXCustomVideoPlayer) |
| OnVideoInitialized | Occurs after the underlying video element has been created and initialized and is ready to accept playback commands. (inherited from TTMSFNCWXCustomVideoPlayer) |