meteoritool Posted November 26, 2015 Share Posted November 26, 2015 Hi, 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", task.data, 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", [task.data], scene, false, true);}; Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 27, 2015 Share Posted November 27, 2015 This is because the videoTexture streams its data from the server. You have to give urls only 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.