瀏覽代碼

Attach player instance to HTML element; see #154

phoboslab 9 年之前
父節點
當前提交
b7ead98748
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/video-element.js

+ 1 - 0
src/video-element.js 查看文件

@@ -57,6 +57,7 @@ var VideoElement = function(element) {
57 57
 
58 58
 	// Create the player instance
59 59
 	this.player = new JSMpeg.Player(url, options);
60
+	element.playerInstance = this.player;
60 61
 
61 62
 	// Setup the poster element, if any
62 63
 	if (options.poster && !options.autoplay && !this.player.options.streaming) {