Skip to content

Commit

Permalink
Merge pull request #451 from dtyszka/samsung_streaming_2014
Browse files Browse the repository at this point in the history
Change HLS VOD player plugin to support different player for VOD and different player for LIVE, work around 25 fps to 50 fps and vice versa playback failure on Samsung X14 LS
  • Loading branch information
yameen authored Jun 20, 2017
2 parents 3b2da81 + 4cf9aac commit a51643f
Show file tree
Hide file tree
Showing 2 changed files with 3 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
3 changes: 1 addition & 2 deletions static/script/devices/mediaplayer/samsung_streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ require.def(
this._toStopped();

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

0 comments on commit a51643f

Please sign in to comment.