Slavent Posted June 17, 2015 Share Posted June 17, 2015 For example:...var slide_container_4 = new PIXI.container();var texture = PIXI.Texture.fromVideo(url);var video = new PIXI.Sprite(texture);slide_container_4.addChild(video);...How to destroy video from memory? Quote Link to comment Share on other sites More sharing options...
xerver Posted June 18, 2015 Share Posted June 18, 2015 Just call the destroy method, and if you are done with the video destroy the base as well.texture.destroy(true); // destroys texture and base texture Quote Link to comment Share on other sites More sharing options...
Slavent Posted June 18, 2015 Author Share Posted June 18, 2015 Thank you, and one more question:When I destroy texture or text, I have black background. Screenshot - http://joxi.ru/52aJ3GBSRGW9A0How to fix it? Quote Link to comment Share on other sites More sharing options...
xerver Posted June 18, 2015 Share Posted June 18, 2015 I don't understand, you destroy a texture that you are using? You should never destroy a texture unless you are done with it. 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.