VideoBaseTexture fixes and changes
* https://github.com/pixijs/pixi.js/commit/8d39e810c595b0afc48e542b2d4cad9c204cc7d2 didn't fully solve the video loading issues; the examples page for videos still doesn't work. I've tracked that down to the static 'fromUrl' function, which called video.play(). This was a tad early, resulting in width and height being 0. Removing the .play here doesn't matter, as it is still automatically called within _onCanPlay()
* autoUpdate changed to a getter/setter. It's previous doc stated that it could be used to control when autoUpdating happened, but this wasn't true, it was actually just an internal variable to check whether it was currently auto updating or not. I've create a couple of private tracking variable for the state, whilst the public getter / setting now truely controls autoUpdating and can be changed on the fly.
* moved this class to use the ticker. My expectation as a dev is that if I stop the shared ticker, PIXI would stop, but VideoBaseTexture was an exception as it used rAF directly.
1 parent 52af393 commit 9b33cdab19d2f6a111663dcfcd8b346e1c28dd29
@Dave Moore Dave Moore authored on 1 Oct 2016
Showing 1 changed file
View
src/core/textures/VideoBaseTexture.js