mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
4f48507a2d
commit
4a87b99666
16 changed files with 428 additions and 50 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.9",
|
||||
"version": "0.5.10",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
@ -16,11 +16,11 @@
|
|||
"test",
|
||||
"tests"
|
||||
],
|
||||
"_release": "0.5.9",
|
||||
"_release": "0.5.10",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.5.9",
|
||||
"commit": "b1579c58d1893c0b64ec7cd59973fea0581c3256"
|
||||
"tag": "v0.5.10",
|
||||
"commit": "ec25b37b27690ccdf0c515f9c992fa9e06f48988"
|
||||
},
|
||||
"_source": "git://github.com/dailymotion/hls.js.git",
|
||||
"_target": "~0.5.7",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.9",
|
||||
"version": "0.5.10",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
|
13
dashboard-ui/bower_components/hls.js/dist/hls.js
vendored
13
dashboard-ui/bower_components/hls.js/dist/hls.js
vendored
|
@ -2076,7 +2076,8 @@ var StreamController = function (_EventHandler) {
|
|||
// include levelCodec in audio and video tracks
|
||||
track = tracks.audio;
|
||||
if (track) {
|
||||
var audioCodec = this.levels[this.level].audioCodec;
|
||||
var audioCodec = this.levels[this.level].audioCodec,
|
||||
ua = navigator.userAgent.toLowerCase();
|
||||
if (audioCodec && this.audioCodecSwap) {
|
||||
_logger.logger.log('swapping playlist audio codec');
|
||||
if (audioCodec.indexOf('mp4a.40.5') !== -1) {
|
||||
|
@ -2087,19 +2088,21 @@ var StreamController = function (_EventHandler) {
|
|||
}
|
||||
// in case AAC and HE-AAC audio codecs are signalled in manifest
|
||||
// force HE-AAC , as it seems that most browsers prefers that way,
|
||||
// except for mono streams OR on Android OR on FF
|
||||
// except for mono streams OR on FF
|
||||
// these conditions might need to be reviewed ...
|
||||
if (this.audioCodecSwitch) {
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
// don't force HE-AAC if mono stream
|
||||
if (track.metadata.channelCount !== 1 &&
|
||||
// don't force HE-AAC if android
|
||||
ua.indexOf('android') === -1 &&
|
||||
// don't force HE-AAC if firefox
|
||||
ua.indexOf('firefox') === -1) {
|
||||
audioCodec = 'mp4a.40.5';
|
||||
}
|
||||
}
|
||||
// HE-AAC is broken on Android, always signal audio codec as AAC even if variant manifest states otherwise
|
||||
if (ua.indexOf('android') !== -1) {
|
||||
audioCodec = 'mp4a.40.2';
|
||||
_logger.logger.log('Android: force audio codec to' + audioCodec);
|
||||
}
|
||||
track.levelCodec = audioCodec;
|
||||
}
|
||||
track = tracks.video;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.9",
|
||||
"version": "0.5.10",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
|
|
@ -847,7 +847,8 @@ class StreamController extends EventHandler {
|
|||
// include levelCodec in audio and video tracks
|
||||
track = tracks.audio;
|
||||
if(track) {
|
||||
var audioCodec = this.levels[this.level].audioCodec;
|
||||
var audioCodec = this.levels[this.level].audioCodec,
|
||||
ua = navigator.userAgent.toLowerCase();
|
||||
if(audioCodec && this.audioCodecSwap) {
|
||||
logger.log('swapping playlist audio codec');
|
||||
if(audioCodec.indexOf('mp4a.40.5') !==-1) {
|
||||
|
@ -858,19 +859,21 @@ class StreamController extends EventHandler {
|
|||
}
|
||||
// in case AAC and HE-AAC audio codecs are signalled in manifest
|
||||
// force HE-AAC , as it seems that most browsers prefers that way,
|
||||
// except for mono streams OR on Android OR on FF
|
||||
// except for mono streams OR on FF
|
||||
// these conditions might need to be reviewed ...
|
||||
if (this.audioCodecSwitch) {
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
// don't force HE-AAC if mono stream
|
||||
if(track.metadata.channelCount !== 1 &&
|
||||
// don't force HE-AAC if android
|
||||
ua.indexOf('android') === -1 &&
|
||||
// don't force HE-AAC if firefox
|
||||
ua.indexOf('firefox') === -1) {
|
||||
audioCodec = 'mp4a.40.5';
|
||||
}
|
||||
}
|
||||
// HE-AAC is broken on Android, always signal audio codec as AAC even if variant manifest states otherwise
|
||||
if(ua.indexOf('android') !== -1) {
|
||||
audioCodec = 'mp4a.40.2';
|
||||
logger.log(`Android: force audio codec to` + audioCodec);
|
||||
}
|
||||
track.levelCodec = audioCodec;
|
||||
}
|
||||
track = tracks.video;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue