소스 검색

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