Skip to content

Commit

Permalink
fix: Tizen video error fixed by checking the extended MIME type (shak…
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoGarciaDiez committed Mar 6, 2023
1 parent 6944976 commit eb01c60
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/polyfill/media_capabilities.js
Expand Up @@ -119,6 +119,19 @@ shaka.polyfill.MediaCapabilities = class {
if (shaka.util.Platform.isChromecast()) {
isSupported =
shaka.polyfill.MediaCapabilities.canCastDisplayType_(videoConfig);
} else if (shaka.util.Platform.isTizen()) {
let extendedType = videoConfig.contentType;
if (videoConfig.width && videoConfig.height) {
extendedType += `; width=${videoConfig.width}`;
extendedType += `; height=${videoConfig.height}`;
}
if (videoConfig.framerate) {
extendedType += `; framerate=${videoConfig.framerate}`;
}
if (videoConfig.bitrate) {
extendedType += `; bitrate=${videoConfig.bitrate}`;
}
isSupported = Capabilities.isTypeSupported(extendedType);
} else {
isSupported = Capabilities.isTypeSupported(videoConfig.contentType);
}
Expand Down

0 comments on commit eb01c60

Please sign in to comment.