浏览代码

Whoops, fix last commit.

phoboslab 9 年前
父节点
当前提交
672586bdbc
共有 3 个文件被更改,包括 4 次插入5 次删除
  1. 3 2
      jsmpeg.min.js
  2. 1 1
      src/canvas2d.js
  3. 0 2
      src/player.js

文件差异内容过多而无法显示
+ 3 - 2
jsmpeg.min.js


+ 1 - 1
src/canvas2d.js 查看文件

@@ -17,7 +17,7 @@ CanvasRenderer.prototype.resize = function(width, height) {
17 17
 	this.canvas.height = this.height;
18 18
 
19 19
 	this.imageData = this.context.getImageData(0, 0, this.width, this.height);
20
-	this.imageData.data.fill(255);
20
+	JSMpeg.Fill(this.imageData.data, 255);
21 21
 };
22 22
 
23 23
 CanvasRenderer.prototype.renderProgress = function(progress) {

+ 0 - 2
src/player.js 查看文件

@@ -58,8 +58,6 @@ var Player = function(url, options) {
58 58
 	if (this.autoplay) {
59 59
 		this.play();
60 60
 	}
61
-
62
-	window.player = this;
63 61
 };
64 62
 
65 63
 Player.prototype.showHide = function(ev) {