clean code, working youtube video player with API

Hey gang,
thank you for all the help getting this iterface basic working.
mrangel and K.V. in particular, as well as anyone else who offered code to help

here is a working basic youtube player in Quest the only working command is
'test'

https://play2.textadventures.co.uk/Play.aspx?id=editor/2cb8ce9f-f466-4031-bb2b-c6ec2102da52%2fYouTube+Player+load+test.aslx

game files
https://drive.google.com/file/d/13BOqhX-li1OJtT36jLvFx19j8mxRg2sA/view?usp=sharing

useful tutorials
https://tutorialzine.com/2015/08/how-to-control-youtubes-video-player-with-javascript

https://imelgrat.me/javascript/youtube-iframe-api-javascript/

API reference
https://developers.google.com/youtube/iframe_api_reference

I am still going to be working on some of the other features in the tutorials, like playback speed, progress bar and volume input,
as well as general text input to pass to Quest with ASLEvent calls

I am also going to dig into postMessage() to see if it can help Quest communicate with the YouTube Iframe during video playback.

https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage

https://javascript.info/cross-window-communication

cheers "-" egoproctor


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums