Skip to content

Commit

Permalink
Add requestMediaKeySytemAccess-specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Aug 13, 2024
1 parent 75d3717 commit 46e9cd5
Show file tree
Hide file tree
Showing 3 changed files with 761 additions and 9 deletions.
6 changes: 5 additions & 1 deletion src/utils/are_codecs_compatible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ function areCodecsCompatible(a: string, b: string): boolean {
if (codecsA === "" || codecsB === "") {
return false;
}
if (codecsA.split(".")[0] !== codecsB.split(".")[0]) {
let initialPartA = codecsA.split(".")[0];
initialPartA = initialPartA === "hev1" ? "hvc1" : initialPartA;
let initialPartB = codecsB.split(".")[0];
initialPartB = initialPartB === "hev1" ? "hvc1" : initialPartB;
if (initialPartA !== initialPartB) {
return false;
}
return true;
Expand Down
Loading

0 comments on commit 46e9cd5

Please sign in to comment.