I found a way to open an online movie by using an embed command in Print Web Link, but I've tried this and other methods of attempting to open a local movie file with no success. It seems that the program just cannot find a local movie, whether using Print Message or Print Web Link. It will load the player with an empty screen, but never loads the video.
I'll fiddle around with GetFileUrl and see if I can get that to work.
The common way to open a local file using: (I left the end brackets out because they won't print in this message)
video width="320" height="240" controls>
source src="movie.mp4" type="video/mp4"
will show the movie player in Print Message but never opens the designated video file, whether it's in the same directory as the .aslx file or in a different one that is assigned.
I've tried a few other methods but the results are always the same. No video is found.
Thanks for your help.
Have you tested this within Quest or in a browser with an uploaded game? The Quest engine can not play mp4. It is using the native chrome engine and this does not support mp4. Browser like Chrome or Firefox however can play mp4, but IE does not. Best is to read this: http://html5please.com/ (search for "< video>")
Have a look at this: https://www.chromium.org/audio-video (Quest is using Chromium)
You can't open a html page in Quest or start an external Browser. And don't forget that your game should run in the Quest desktop version and as uploaded game in the online webplayer. So if you really want to show videos in a game you must use the HTML5 tag VIDEO. There you can define several sources for a video something like
<video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> </video>
so that the web component of Quest or of the used Browser can choose the file which can be displayed correctly
I've already tried that script and others but they don't work. I've tried it with mp4, ogg, avi, wmv and other video formats, using Print Message. I place the video in the same directory as the .aslx file and the program will load the player but not the video. If you should find another means of playing a local video in the program, please let me know. Thanks.
well, then, that's alkemist's problem - and yours, silver. you have to have a video player to play a video. Youtube has a video player and when you use a link to a URL on youtube, you're just telling youtube to play the video.
If you want to use a video that's not on youtube, you're going to have to figure out how to code a video player into Quest. And I'm guessing that's not happening anytime soon.
So - solution: create a channel on youtube for your game videos, and nothing else, and put your videos there. Not a good solution if you want to play videos you don't have the right to - but then you shouldn't be doing that anyway.
But the video tag for html 5 is just a tag. it's not a player. The tag tells the browser to play a video. However, it only works because the browser in question has a built in video player.
The tag is intended to replace shockwave flash for playing videos in web browsers. But for Quest to use it, Quest would not only need to understand that the tag meant play a video, but also have a native, built in player to play the video with.
Which is why you don't get video. Quest doesn't have a built in player.
you're calling Quest from a browser. But the browser isn't going to read Quest's code to see you need to play a video. You'll need to call the video in the html page you're also calling quest from.
The video called that way isn't going to play inside quest, it'll play in the page that you're going to run quest from. But it will play separately. And that's not what the OP wanted. Or at least not what I understood.
I understood that the OP wanted to open a video inside Quest rather than just calling a link to a youtube video. Which can't be done, with or without html 5. The reason being that the VIDEO tag that has been enabled in html5 is just a tag. IF placed inside a web page's html code, it tells the browser to use its own video player to play the video.
But using the VIDEO tag inside quest isn't using it inside the html code of the webpage. You're using it inside an application that the webpage is serving up. And the browser isn't going to play your video just because you used the tag.
Quest, the application, needs to be coded so that when it sees the VIDEO tag in its own code, it knows to tell the browser to kick off its video player.