mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-14 13:10:29 +00:00
dispatch load command before dispatch subtitles commands
This commit is contained in:
parent
f8230ce408
commit
c4b40a8bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue