Skip to content

Commit

Permalink
Change HLS VOD player plugin
Browse files Browse the repository at this point in the history
Switch HLS VOD to use StreamingPlayer plugin instead on Player plugin
  • Loading branch information
dtyszka committed Jun 19, 2017
1 parent 4930444 commit 9d8dd67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
assert(playerPlugin.Open.notCalled);
assert(playerPlugin._methods.InitPlayer.notCalled);
this._mediaPlayer.setSource(MediaPlayer.TYPE.VIDEO, 'testURL', 'application/vnd.apple.mpegurl');
assert(playerPlugin.Open.calledWith('Player', '1.010', 'Player'));
assert(playerPlugin.Open.calledWith('StreamingPlayer', '1.0', 'StreamingPlayer'));
assert(playerPlugin.Open.calledOnce);
assert(playerPlugin._methods.InitPlayer.calledWith('testURL|COMPONENT=HLS'));
assert(playerPlugin._methods.InitPlayer.calledOnce);
Expand All @@ -282,7 +282,7 @@
assert(playerPlugin.Open.notCalled);
assert(playerPlugin._methods.InitPlayer.notCalled);
this._mediaPlayer.setSource(MediaPlayer.TYPE.VIDEO, 'testURL', 'application/vnd.apple.mpegurl');
assert(playerPlugin.Open.calledWith('Player', '1.010', 'Player'));
assert(playerPlugin.Open.calledWith('StreamingPlayer', '1.0', 'StreamingPlayer'));
assert(playerPlugin.Open.calledOnce);
assert(playerPlugin._methods.InitPlayer.calledWith('testURL|COMPONENT=HLS'));
assert(playerPlugin._methods.InitPlayer.calledOnce);
Expand Down
5 changes: 3 additions & 2 deletions static/script/devices/mediaplayer/samsung_streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ require.def(
this._toStopped();

if (this._isHlsMimeType()) {
this._openStreamingPlayerPlugin();
if (this._isLiveMedia()) {
this._source += '|HLSSLIDING|COMPONENT=HLS';
this._openStreamingPlayerPlugin();
//this._openStreamingPlayerPlugin();
} else {
this._source += '|COMPONENT=HLS';
this._openPlayerPlugin();
//this._openPlayerPlugin();
}
} else {
this._openPlayerPlugin();
Expand Down

0 comments on commit 9d8dd67

Please sign in to comment.