Enabled PIXI.VideoTexture support.

This commit is contained in:
photonstorm 2015-04-17 17:36:20 +01:00
parent 48f04f1ec5
commit b196e4f17e
3 changed files with 5 additions and 2 deletions

View file

@ -86,6 +86,7 @@
<script src="$path/src/pixi/textures/BaseTexture.js"></script>
<script src="$path/src/pixi/textures/Texture.js"></script>
<script src="$path/src/pixi/textures/RenderTexture.js"></script>
<script src="$path/src/pixi/textures/VideoTexture.js"></script>
<script src="$path/src/pixi/filters/AbstractFilter.js"></script>

View file

@ -42,12 +42,13 @@ PIXI.VideoTexture = function( source, scaleMode )
};
PIXI.VideoTexture.prototype = Object.create( PIXI.BaseTexture.prototype );
PIXI.VideoTexture.prototype = Object.create( PIXI.BaseTexture.prototype );
PIXI.VideoTexture.constructor = PIXI.VideoTexture;
PIXI.VideoTexture.prototype._onUpdate = function()
{
if(this.autoUpdate)
{
window.requestAnimationFrame(this.updateBound);
@ -87,7 +88,7 @@ PIXI.VideoTexture.prototype.onCanPlay = function()
// prevent multiple loaded dispatches..
if( !this.__loaded ){
this.__loaded = true;
this.dispatchEvent( { type: 'loaded', content: this } );
// this.dispatchEvent( { type: 'loaded', content: this } );
}
}
}

View file

@ -45,6 +45,7 @@
"src/pixi/textures/BaseTexture.js",
"src/pixi/textures/Texture.js",
"src/pixi/textures/RenderTexture.js",
"src/pixi/textures/VideoTexture.js",
"src/pixi/filters/AbstractFilter.js",