I’m going to be redoing our Webinar infrastructure, moving it from php to Xojo.
This brings up the question:
What is the best way to show videos in Xojo on the web. We are currently switching out videos from flash to html5. Is it possible to show html 5 videos in a webviewer?
What format does WebMoviePlayer use?
How does it fall back to flash?
Also do I have to Write code to detect browser and use a different video format depending on the browser?
@Bob Keeney Seeing how you have done this, what recommendations can you give?
A quick Google search pointed me to this page which lists HTML5 video formats, it appears that MP4 is supported everywhere these days so if you go with that format it seems like you won’t have to worry about Flash. WebM and Ogg have some gaps.
Sorry I didn’t see this earlier. Because we were never able to resolve Flash not working on all platforms we encode our videos in mp4 and ogg. At runtime, we figure out those browsers that need ogg and change the movie URL accordingly.
We have NOT attempted to unify the videos in several years so this might not be an issue now.
if session.Browser = websession.BrowserType.Firefox or session.Browser = websession.BrowserType.Chrome then
MoviePlayer1.DesktopURL = "http://aMoveURL.ogv"
else
MoviePlayer1.DesktopURL = "http://9aMoveURL.mp4"
End
FireFox and Chrome were the only ones (at the time) that didn’t support mp4. This might have changed but I’ve left it for legacy purposes. I will revisit this when I get some free time (not soon, in other words).