Sign in to follow this  

Assets Manager and Video Textures

Recommended Posts



I'm running into an issue regarding the Assets Manager and the Video Textures :


When loading a sound, here is an example of code that works very well, using Assets :

var binaryTaskSound = assetsManager.addBinaryFileTask("s1 task", "sounds/sound1.mp3");binaryTaskSound.onSuccess = function (task) {	music5 = new BABYLON.Sound("s5",, scene, soundReady, { loop: true});};

Now when I want to load a Video Texture using the same method, it doesn't not seem to work anymore :

var binaryTaskVideo = assetsManager.addBinaryFileTask("v1 task", "videos/Cocoon720p-Synced.mp4");binaryTaskVideo.onSuccess = function (task) {	var videoTexture = new BABYLON.VideoTexture("video", [], scene, false, true);};

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.