Jump to content

I cannot locate a "time" property for a video texture


dbawel
 Share

Recommended Posts

I need to add a shuffle slider to my scene to scrub through the videoTexture.  I don't believe there is a property for time such as in buiding a direct HTML5 video player.  If there is one such as VideoTexture.video.time() please let me know.  Otherwise, my solution is to load both a forward and backward playing video and manipulate those.  Lot's of work.  :(

 

Thanks.

Link to comment
Share on other sites

The videoTexture: https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/Textures/babylon.videoTexture.ts is using an HTML5 video element exposed in the .video property. It's then used as the input of a DynamicTexture like you could do on a 2D canvas.

Conclusion: you should use the .video property to do whatever you'd like ;)

David

Link to comment
Share on other sites

Hey davrous,

 

I suppose it would be rediculous if any HTML5 video properties were excluded from BJS.  I will test before the weekend, and let the community know if I find any issues.  Thanks for the reasurance that the HTML5 video properties are most likely all supported (as I have so much else to write, I thought I'd first post the question to see who may have already tested through these in BJS on a VideoTexture - trying to take the easy way out first. I'll test through them all, as this makes my life a whole lot easier. :D

 

Cheers.

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...