Slavent Posted June 17, 2015 Share Posted June 17, 2015 I have some code: ...var stage = new PIXI.Container();var texture = PIXI.Texture.fromVideo(url);var video = new PIXI.Sprite(texture);stage.addChild(video);...How I can stop the video or resume playing? Quote Link to comment Share on other sites More sharing options...
xerver Posted June 18, 2015 Share Posted June 18, 2015 The source of a VideoBaseTexture is an HTML5 Video Element, you can do whatever you want to that element.var source = texture.baseTexture.source;source.pause();source.play(); Dok11 1 Quote Link to comment Share on other sites More sharing options...
Slavent Posted June 18, 2015 Author Share Posted June 18, 2015 Thank you, man. You great! 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.