Skip to content

Commit

Permalink
plays when autoPlay is true fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromoreira committed Jan 26, 2016
1 parent ca59bb6 commit 8ab2a7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export default class DashShakaPlayback extends HTML5Video {
this.selectVideoTrack = checkIfIsReady((id) => this._player.selectVideoTrack(id))

this.getPlaybackType = checkIfIsReady(() => (this._player.isLive()?'live':'vod'))

options.autoPlay && this.play()
}

play() {
Expand Down

0 comments on commit 8ab2a7f

Please sign in to comment.