WebMoviePlayer on Chrome wont let you change the movie URL

Good morning folks,

Testing on Chrome this morning revealed some interesting things. The WebMovieController won’t let you change the movie url. It will only ever play the first one that was set. I originally opened up the feedback report thinking it was the flash fallback player that was doing it. I had forgotten that chrome actually support MP4 movies and it’s only firefox that wants an ogg encoded movie.

<https://xojo.com/issue/40972>

[quote=216661:@James Sentman]Good morning folks,

Testing on Chrome this morning revealed some interesting things. The WebMovieController won’t let you change the movie url. It will only ever play the first one that was set. I originally opened up the feedback report thinking it was the flash fallback player that was doing it. I had forgotten that chrome actually support MP4 movies and it’s only firefox that wants an ogg encoded movie.

<https://xojo.com/issue/40972>[/quote]

Indeed I found that out a while ago. You can only play the URL from design time.

The workaround is to use the HTML5 player.

@Michel Bujardet

What do you mean use the Html5 Player?

http://www.w3schools.com/tags/tag_video.asp

But how do you get the htmlviewer to render it. I can’t figure a way to get it to show a variable with html code in it.

Thanks

[quote=258984:@Richard Albrecht]But how do you get the htmlviewer to render it. I can’t figure a way to get it to show a variable with html code in it.
[/quote]

Use the HTML code as source for HTMLViewer LoadPage. Click on “Try it yourself” at the w3schools link above and copy the code in the left side of the screen into a string variable for use…

See http://documentation.xojo.com/index.php/WebHTMLViewer.LoadPage

I didn’t spot that, thanks!

Got it to work, however the full screen button isn’t there.

Any ideas?

Thanks

What did you get to work ?

The Html Video Tag in a HTMLViewer

Strange. Indeed I do not get the full screen with controls enabled, though it is described.
http://www.w3schools.com/tags/ref_av_dom.asp

I guess you could obtain the same result with a full screen window and an HTMLViewer locked on all sides. With the appropriate HTML, it will cover the full screen. Then you have to supply the full screen button yourself.