update stream selection
This commit is contained in:
parent
49f8917315
commit
2300b96924
7 changed files with 17 additions and 13 deletions
|
@ -980,7 +980,7 @@
|
|||
// Huge hack alert. Safari doesn't seem to like if the segments aren't available right away when playback starts
|
||||
// This will start the transcoding process before actually feeding the video url into the player
|
||||
// Edit: Also seeing stalls from hls.js
|
||||
if ((browserInfo.safari || browserInfo.msie || browserInfo.firefox) && !mediaSource.RunTimeTicks && isHls) {
|
||||
if (!mediaSource.RunTimeTicks && isHls) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
var hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
|
||||
|
@ -992,7 +992,12 @@
|
|||
}).then(function () {
|
||||
Dashboard.hideLoadingMsg();
|
||||
streamInfo.url = hlsPlaylistUrl;
|
||||
self.playVideoInternal(item, mediaSource, startPosition, streamInfo, callback);
|
||||
|
||||
// add a delay to continue building up the buffer. without this we see failures in safari mobile
|
||||
setTimeout(function () {
|
||||
self.playVideoInternal(item, mediaSource, startPosition, streamInfo, callback);
|
||||
}, 2000);
|
||||
|
||||
}, function () {
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue