this.trigger('autoResolutionUpdate')
}
+ getCurrentVideoFile () {
+ return this.currentVideoFile
+ }
+
+ getTorrent () {
+ return this.torrent
+ }
+
private tryToPlay (done?: Function) {
if (!done) done = function () { /* empty */ }
+
const playPromise = this.player.play()
if (playPromise !== undefined) {
return playPromise.then(done)
// Proxy first play
const oldPlay = this.player.play.bind(this.player)
this.player.play = () => {
- // Avoid issue new play policy on mobiles
- if (isMobile()) oldPlay()
-
this.player.addClass('vjs-has-big-play-button-clicked')
this.player.play = oldPlay