-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop and Autoplay Video with Pixi.js 5.2.1 #6501
Comments
|
and creates BaseTexture based on it. VideoResource creates html5 video element , it starts playing video asynchonously. Tip: next time you see a null pointer (Type Error) - just look in object in debug, it might have something like that field but under different name ;) |
Thank you, added it here: https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide#basetexturesource |
@Plunky33 does that fix your issue? |
Good stuff!! Great information! Thank you for your answers. Issue has been fixed and I have implemented autoplay and video loop. Thanks guys! |
Awesome, closing. |
Hello! I am trying to implement autoplay and loop on a video (see code below) with Pixi.js@5.2.1 - My question is: bg.baseTexture.source.loop = true; - returns an uncaught TypeError - while the autoplay method works but for some reason the baseTexture.source.loop method does not. Thank you for checking this issue out. Has the most recent version of Pixi.js changed how - baseTexture.source.loop is called? Your comments and help are appreciated!
Here's my code:
Reference: does the fact that source was deprecated have anything to do with the TypeError?
<img width="1407" alt="Screen Shot 2020-03-26 at 7 47 42 PM" src="https://user-images.githubusercontent.com/57849114/77716141-b2955800-6f9a-11ea-9d4a-f920511bd86e.png">
The text was updated successfully, but these errors were encountered: