Raghavender Mylagary Posted January 10, 2017 Share Posted January 10, 2017 Hi, Is there any way where we can set live streaming video as a Video Texture? Thanks, Raghavender Mylagary Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 10, 2017 Share Posted January 10, 2017 yes you can:) BABYLON.VideoTexture.CreateFromWebCam(scene, function(videoTexture) { }, { maxWidth: 256, maxHeight: 256 }); Sample: https://www.babylonjs-playground.com/#1R77YT#2 Quote Link to comment Share on other sites More sharing options...
Raghavender Mylagary Posted January 10, 2017 Author Share Posted January 10, 2017 @Deltakosh i need the live video from the sources like youtube & FB. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 10, 2017 Share Posted January 10, 2017 oh sorry..You need to be able to make them work with a HTML video tag. If you can do that then Bjs will be able to use it in a texture Quote Link to comment Share on other sites More sharing options...
Raghavender Mylagary Posted January 10, 2017 Author Share Posted January 10, 2017 @Deltakosh HTML 5 supports them only with iframe tag and the BJS uses video tag for the video textures. Is there any way we can use iframe tag for the video textures? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.