ソースを参照

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) {