Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 8b7ae12

Browse files
committed
Add AV1 video codec
1 parent 6497b0e commit 8b7ae12

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

scripts/9/data.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,14 @@ var tests = [
13401340
[ 'webm', 'http://www.webmproject.org/' ],
13411341
[ 'ietf', 'http://tools.ietf.org/id/draft-grange-vp9-bitstream-00.txt' ]
13421342
]
1343+
}, {
1344+
id: 'codecs.webm.av1',
1345+
name: 'WebM with AV1 support',
1346+
status: 'optional',
1347+
urls: [
1348+
[ 'webm', 'http://www.webmproject.org/' ],
1349+
[ 'other', 'http://aomedia.org' ]
1350+
]
13431351
}
13441352
]
13451353
}, {
@@ -1508,6 +1516,14 @@ var tests = [
15081516
[ 'webm', 'http://www.webmproject.org/' ],
15091517
[ 'ietf', 'http://tools.ietf.org/id/draft-grange-vp9-bitstream-00.txt' ]
15101518
]
1519+
}, {
1520+
id: 'webm.av1',
1521+
name: 'WebM with AV1 support',
1522+
status: 'optional',
1523+
urls: [
1524+
[ 'webm', 'http://www.webmproject.org/' ],
1525+
[ 'other', 'http://aomedia.org' ]
1526+
]
15111527
}
15121528
]
15131529
}, {

scripts/9/engine.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,13 @@ Test9 = (function () {
24962496
passed: !!element.canPlayType && canPlayType(element, 'video/webm; codecs="vp9"')
24972497
});
24982498

2499+
/* av1 in webm codec */
2500+
2501+
results.addItem({
2502+
key: 'video.codecs.webm.av1',
2503+
passed: !!element.canPlayType && canPlayType(element, 'video/webm; codecs="av1.experimental.e87fb2378f01103d5d6e477a4ef6892dc714e614"')
2504+
});
2505+
24992506
/* does codec detection work properly? */
25002507

25012508
var passed = true;
@@ -2791,6 +2798,11 @@ Test9 = (function () {
27912798
key: 'streaming.video.codecs.webm.vp9',
27922799
passed: 'MediaSource' in window && MediaSource.isTypeSupported('video/webm; codecs="vp9"')
27932800
});
2801+
2802+
results.addItem({
2803+
key: 'streaming.video.codecs.webm.av1',
2804+
passed: 'MediaSource' in window && MediaSource.isTypeSupported('video/webm; codecs="av1.experimental.e87fb2378f01103d5d6e477a4ef6892dc714e614"')
2805+
});
27942806
},
27952807

27962808

0 commit comments

Comments
 (0)