Hello i just try to play a video to test, but i can't not succeed.
Do i miss something.
Here is approximately the basic code
PHP:
var vidTexture = PIXI.Texture.fromVideo('video/01.mov'); // load file path rmmv as texture
var vid = vidTexture.baseTexture.source; // shortcut to .VideoBaseTexture method
var vidSprite = new PIXI.Sprite(vidTexture); // make a pixi sprite with the video texture
vidSprite.width = vid.videoWidth, vidSprite.height = vid.videoHeight; // Hum, ?? why vid WidthHeight, is 0 ??
var myPicture_WillContainVideo = SceneManager._scene._spriteset._pictureContainer.children[pictureID]; // example picture 5
myPicture_WillContainVideo.addChild(vidSprite); // Add the sprite Video in the picture sprite container as children
vid.play(); // play Video !
What I do, not correct.
Yet it works here. !
https://pixijs.github.io/examples/#/basics/video.js
thank a lot for help guy and girl
here the video i try to play !
If anyone can try to tell me what I do wrong.