Jump to content

Live streaming video as a texture


Recommended Posts

Hi  @Deltakosh @Wingnut @JCPalmer,

     Is there any way we can show youtube or any live stream video as a texture?  http://www.babylonjs-playground.com/#140LZL#9

    Is it possible to draw iframe on to the canvas element of the dynamic texture or is it possible to use the video element of video texture to render the livestream?

 

Thanks

-Raghavender Mylagary

 

Link to comment
Share on other sites

We support webCam:

BABYLON.VideoTexture.CreateFromWebCam(scene, function(videoTexture) { }, { maxWidth: 256, maxHeight: 256 });

For live stream this should work directly if you use the right url for VideoTexture:

texture = new BABYLON.VideoTexture("video",
["Scenes/Flat2009/babylonjs.mp4", "Scenes/Flat2009/babylonjs.webm"], scene, true);

 

Link to comment
Share on other sites

On 3/31/2017 at 6:31 PM, Deltakosh said:

We support webCam:


BABYLON.VideoTexture.CreateFromWebCam(scene, function(videoTexture) { }, { maxWidth: 256, maxHeight: 256 });

For live stream this should work directly if you use the right url for VideoTexture:


texture = new BABYLON.VideoTexture("video",
["Scenes/Flat2009/babylonjs.mp4", "Scenes/Flat2009/babylonjs.webm"], scene, true);

 

 
 

@Deltakosh I tried to set correct url for VideoTexture but its not working http://www.babylonjs-playground.com/#1P9EED#0

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...