dbawel Posted November 17, 2015 Share Posted November 17, 2015 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. Quote Link to comment Share on other sites More sharing options...
davrous Posted November 17, 2015 Share Posted November 17, 2015 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 Quote Link to comment Share on other sites More sharing options...
davrous Posted November 17, 2015 Share Posted November 17, 2015 For instance, have you tried playing with with the .video.currentTime property: http://www.html5rocks.com/en/tutorials/video/basics/ ? Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 17, 2015 Author Share Posted November 17, 2015 I assumed we wouldn't be able to access all of the HTML5 video controls. I will try to see if this works. Thanks, DB Quote Link to comment Share on other sites More sharing options...
davrous Posted November 17, 2015 Share Posted November 17, 2015 Wrong assumption, it will work Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 18, 2015 Author Share Posted November 18, 2015 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. Cheers. 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.