From bde6e72e7cf258d483262a487ae331fb37ab9867 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Wed, 16 Jan 2019 15:00:37 +0200 Subject: [PATCH] Video component refactored to be used through dispatch method only --- src/routes/Player/Player.js | 2 +- src/routes/Player/Video/Video.js | 37 +++++++++++++++----------------- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/routes/Player/Player.js b/src/routes/Player/Player.js index ef9998a43..185879c6a 100644 --- a/src/routes/Player/Player.js +++ b/src/routes/Player/Player.js @@ -46,6 +46,7 @@ class Player extends Component { 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 = () => { @@ -74,7 +75,6 @@ class Player extends Component {