Merge pull request #1167 from Brissot/av1
Added AV1 Codec Profile to Avoid Transcode
This commit is contained in:
commit
532d496ea6
1 changed files with 10 additions and 0 deletions
|
@ -334,6 +334,7 @@ define(['browser'], function (browser) {
|
||||||
|
|
||||||
var canPlayVp8 = videoTestElement.canPlayType('video/webm; codecs="vp8"').replace(/no/, '');
|
var canPlayVp8 = videoTestElement.canPlayType('video/webm; codecs="vp8"').replace(/no/, '');
|
||||||
var canPlayVp9 = videoTestElement.canPlayType('video/webm; codecs="vp9"').replace(/no/, '');
|
var canPlayVp9 = videoTestElement.canPlayType('video/webm; codecs="vp9"').replace(/no/, '');
|
||||||
|
var canPlayAv1 = videoTestElement.canPlayType('video/webm; codecs="av1"').replace(/no/, '');
|
||||||
var webmAudioCodecs = ['vorbis'];
|
var webmAudioCodecs = ['vorbis'];
|
||||||
|
|
||||||
var canPlayMkv = testCanPlayMkv(videoTestElement);
|
var canPlayMkv = testCanPlayMkv(videoTestElement);
|
||||||
|
@ -592,6 +593,15 @@ define(['browser'], function (browser) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (canPlayAv1) {
|
||||||
|
profile.DirectPlayProfiles.push({
|
||||||
|
Container: 'webm',
|
||||||
|
Type: 'Video',
|
||||||
|
AudioCodec: webmAudioCodecs.join(','),
|
||||||
|
VideoCodec: 'AV1'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
profile.TranscodingProfiles = [];
|
profile.TranscodingProfiles = [];
|
||||||
|
|
||||||
var hlsBreakOnNonKeyFrames = browser.iOS || browser.osx || browser.edge || !canPlayNativeHls() ? true : false;
|
var hlsBreakOnNonKeyFrames = browser.iOS || browser.osx || browser.edge || !canPlayNativeHls() ? true : false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue