mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add Tizen version check
This commit is contained in:
parent
603472cfb6
commit
d6ab058661
2 changed files with 4 additions and 1 deletions
|
@ -271,6 +271,9 @@ define([], function () {
|
||||||
|
|
||||||
if (!browser.tizen) {
|
if (!browser.tizen) {
|
||||||
browser.orsay = userAgent.toLowerCase().indexOf('smarthub') !== -1;
|
browser.orsay = userAgent.toLowerCase().indexOf('smarthub') !== -1;
|
||||||
|
} else {
|
||||||
|
var v = (navigator.appVersion).match(/Tizen (\d+).(\d+)/);
|
||||||
|
browser.tizenVersion = parseInt(v[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (browser.edgeUwp) {
|
if (browser.edgeUwp) {
|
||||||
|
|
|
@ -216,7 +216,7 @@ define(['browser'], function (browser) {
|
||||||
supported = browser.tizen || browser.orsay || browser.web0s || browser.edgeUwp;
|
supported = browser.tizen || browser.orsay || browser.web0s || browser.edgeUwp;
|
||||||
// New Samsung TV don't support XviD/DivX
|
// New Samsung TV don't support XviD/DivX
|
||||||
// Explicitly add supported codecs to make other codecs be transcoded
|
// Explicitly add supported codecs to make other codecs be transcoded
|
||||||
if (browser.tizen) {
|
if (browser.tizenVersion >= 4) {
|
||||||
videoCodecs.push('h264');
|
videoCodecs.push('h264');
|
||||||
if (canPlayH265(videoTestElement, options)) {
|
if (canPlayH265(videoTestElement, options)) {
|
||||||
videoCodecs.push('h265');
|
videoCodecs.push('h265');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue