keysabyl Posted April 17, 2016 Share Posted April 17, 2016 I wonder if it’s possible to embed YouTube-movies in Phaser directly. Now I’m using a movie file on my own server, but the image is flickering and not smoothly. Thanks for any tip to do that. Link to comment Share on other sites More sharing options...
bruno_ Posted April 17, 2016 Share Posted April 17, 2016 If it fits, you can use plain html/js to do that. Use a DOM element with an absolute position over the game. Link to comment Share on other sites More sharing options...
keysabyl Posted April 18, 2016 Author Share Posted April 18, 2016 I'm a newbie, as you can see. Is it possible to post some code as an example? Ik wan't to play a YouTube-movie from a screencast I made, in the middle of the screen. Link to comment Share on other sites More sharing options...
bruno_ Posted April 18, 2016 Share Posted April 18, 2016 Grab the iframe code from your YouTube video, then add in the CSS: iframe { position:absolute; top:0;right:0;left:0;bottom:0; width:XXXpx;height:XXXpx } I haven'ttested it, but it should give you the basic idea. Link to comment Share on other sites More sharing options...
Recommended Posts