Show videos in Web App

Hi,

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?

Also is html 5 the way to go?

@Bob Keeney what method do you use on your site?

Thanks

[quote=222257:@Richard Albrecht] Is it possible to show html 5 videos in a webviewer?

Also is html 5 the way to go?[/quote]

It is fairly easy using LoadPage. See http://www.w3schools.com/html/html5_video.asp

But it may not be necessary to go WebHTMLViewer. WebMoviePlayer is using it.

I know how to show html5 video, i’m just want to know what is the best way to show videos.

What format does WebMoviePlayer use?

OK I got the WebMoviePlayer to play a video. How does it fall back to flash? Do I have to give it the url to the flash somehow?

Also do I have to Write code to detect browser and use a different video format depending on the browser?

Still looking for some answers:

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?

Thanks

From the WebMoviePlayer description in the LR:

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.

Bob how did you determine the browser and what browser needs what video format?

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).

You have free time???

No. And that’s a problem.