1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-01-18 14:07:26 -05:00
parent 047fd2b438
commit 6f96e87248
22 changed files with 472 additions and 303 deletions

View file

@ -15,12 +15,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.0.20",
"_release": "1.0.20",
"version": "1.0.21",
"_release": "1.0.21",
"_resolution": {
"type": "version",
"tag": "1.0.20",
"commit": "b88c3533403d7fc921adb381c81917c80d9c4e77"
"tag": "1.0.21",
"commit": "dd73237b9d554d45a664e820042804c6d129d280"
},
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.0.0",

View file

@ -1,4 +1,4 @@
define(['browser'], function (browser) {
define(['browser'], function (browser) {
function canPlayH264() {
var v = document.createElement('video');
@ -67,7 +67,7 @@
function canPlayHls(src) {
if (_canPlayHls == null) {
_canPlayHls = window.MediaSource != null || canPlayNativeHls();
_canPlayHls = canPlayNativeHls() || canPlayHlsWithMSE();
}
return _canPlayHls;
}
@ -83,6 +83,15 @@
return false;
}
function canPlayHlsWithMSE() {
if (window.MediaSource != null) {
// text tracks dont work with this in firefox
return !browser.firefox;
}
return false;
}
return function () {
var bitrateSetting = 100000000;