diff --git a/src/routes/Player/Player.js b/src/routes/Player/Player.js index 77eb23cc0..bd443d0d2 100644 --- a/src/routes/Player/Player.js +++ b/src/routes/Player/Player.js @@ -40,13 +40,13 @@ class Player extends Component { } componentDidMount() { + this.dispatch('command', 'load', this.props.stream, {}); this.dispatch('command', 'addSubtitleTracks', [{ url: 'https://raw.githubusercontent.com/caitp/ng-media/master/example/assets/captions/bunny-en.vtt', origin: 'Github', label: 'English' }]); this.dispatch('setProp', 'selectedSubtitleTrackId', 'https://raw.githubusercontent.com/caitp/ng-media/master/example/assets/captions/bunny-en.vtt'); - this.dispatch('command', 'load', this.props.stream, {}); } onEnded = () => {