Jump to content

Assets Manager and Video Textures


meteoritool
 Share

Recommended Posts

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);};
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...