Merge pull request #969 from dmitrylyzo/tizen_xvid
Fix XviD playback on Tizen
This commit is contained in:
commit
31d9b35615
2 changed files with 12 additions and 0 deletions
|
@ -271,6 +271,9 @@ define([], function () {
|
|||
|
||||
if (!browser.tizen) {
|
||||
browser.orsay = userAgent.toLowerCase().indexOf('smarthub') !== -1;
|
||||
} else {
|
||||
var v = (navigator.appVersion).match(/Tizen (\d+).(\d+)/);
|
||||
browser.tizenVersion = parseInt(v[1]);
|
||||
}
|
||||
|
||||
if (browser.edgeUwp) {
|
||||
|
|
|
@ -214,6 +214,15 @@ define(['browser'], function (browser) {
|
|||
break;
|
||||
case 'avi':
|
||||
supported = browser.tizen || browser.orsay || browser.web0s || browser.edgeUwp;
|
||||
// New Samsung TV don't support XviD/DivX
|
||||
// Explicitly add supported codecs to make other codecs be transcoded
|
||||
if (browser.tizenVersion >= 4) {
|
||||
videoCodecs.push('h264');
|
||||
if (canPlayH265(videoTestElement, options)) {
|
||||
videoCodecs.push('h265');
|
||||
videoCodecs.push('hevc');
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'mpg':
|
||||
case 'mpeg':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue