Fixed embedded Plyr not updating plyr.media.paused
This commit is contained in:
		| @ -952,9 +952,18 @@ | |||||||
|                         var instance = event.target; |                         var instance = event.target; | ||||||
|  |  | ||||||
|                         // Create a faux HTML5 API using the YouTube API |                         // Create a faux HTML5 API using the YouTube API | ||||||
|                         player.media.play = function() { instance.playVideo(); }; |                         player.media.play = function() { | ||||||
|                         player.media.pause = function() { instance.pauseVideo(); }; |                             instance.playVideo(); | ||||||
|                         player.media.stop = function() { instance.stopVideo(); }; |                             player.media.paused = false; | ||||||
|  |                         }; | ||||||
|  |                         player.media.pause = function() { | ||||||
|  |                             instance.pauseVideo(); | ||||||
|  |                             player.media.paused = true; | ||||||
|  |                         }; | ||||||
|  |                         player.media.stop = function() { | ||||||
|  |                             instance.stopVideo(); | ||||||
|  |                             player.media.paused = true | ||||||
|  |                         }; | ||||||
|                         player.media.duration = instance.getDuration(); |                         player.media.duration = instance.getDuration(); | ||||||
|                         player.media.paused = true; |                         player.media.paused = true; | ||||||
|                         player.media.currentTime = instance.getCurrentTime(); |                         player.media.currentTime = instance.getCurrentTime(); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user