WebMoviePlayer

From Xojo Documentation

Class (inherits from WebControl)


New in 2011r2

Plays a movie in a web app using the HTML5 video capabilities of the client browser.

Events
DurationChanged Played Stopped
Error PositionChanged VolumeChanged
Properties
AllowFullScreen Duration fa-lock-32.png Position
AutoPlay MobileCellularURL Volume
DesktopURL MobileWiFiURL


Methods
FastForward FastRewindStop Mute
FastForwardStop GoToBeginning Play
FastRewind GoToEnding Stop

Notes

WebMoviePlayer uses the built-in HTML5 video player on all browsers. HTML5 video supports MP4, WebM and Ogg video formats. All browsers support MP4 so that is generally recommended.

Browser supported video formats:

Browser MP4 WebM Ogg
Internet Explorer Yes No No
Edge Yes Optional No
Chrome Yes Yes Yes
Firefox Yes Yes Yes
Safari Yes No No
Opera Yes Yes Yes

You can provide URLs for up to three movie formats to support different screen size/bandwidth requirements as chosen by the web browser based on how it is connected to the web:

URL Screen Size/Bandwidth
DesktopURL Large Size, High-Bandwidth
MobileWiFiURL Small-Size, High-Bandwidth
MobileCellularURL Small-Size, Low-Bandwidth

The URLs must be actual URLs that would also work in a web browser. They cannot be local file URLs from a FolderItem.

See Also

MoviePlayer, WebYouTubeMovie classes.