-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encrypted media test google migration: syntax (#3874)
- Loading branch information
1 parent
61f9e5b
commit 127149d
Showing
11 changed files
with
1,078 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<title>Encrypted Media Extensions - Test MediaKeys attribute, setServerCertificate and setServerCertificate exception syntax for Clear Key, mp4</title> | ||
<link rel="help" href="https://w3c.github.io/encrypted-media/"> | ||
|
||
<!-- Web Platform Test Harness scripts --> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
|
||
<!-- Helper scripts for Encrypted Media Extensions tests --> | ||
<script src=/encrypted-media/util/utils.js></script> | ||
<script src=/encrypted-media/util/utf8.js></script> | ||
<script src=/encrypted-media/util/fetch.js></script> | ||
|
||
<!-- Content metadata --> | ||
<script src=/encrypted-media/content/content-metadata.js></script> | ||
|
||
<!-- The script for this specific test --> | ||
<script src=/encrypted-media/scripts/syntax-mediakeys.js></script> | ||
|
||
</head> | ||
<body> | ||
<div id='log'></div> | ||
<div id='video'> | ||
<video id="videoelement" width="200px"></video> | ||
</div> | ||
<script> | ||
var contentItem = content['mp4-basic'], | ||
config = { | ||
keysystem: 'org.w3.clearkey', | ||
content: contentItem, | ||
initDataType: 'keyids', | ||
initData: getInitData(contentItem, 'keyids'), | ||
audioType: contentItem.audio.type, | ||
videoType: contentItem.video.type | ||
}; | ||
runTest(config); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<title>Encrypted Media Extensions - Test MediaKeySession attribute and function syntax for Clear Key, mp4</title> | ||
<link rel="help" href="https://w3c.github.io/encrypted-media/"> | ||
|
||
<!-- Web Platform Test Harness scripts --> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
|
||
<!-- Helper scripts for Encrypted Media Extensions tests --> | ||
<script src=/encrypted-media/util/utils.js></script> | ||
<script src=/encrypted-media/util/utf8.js></script> | ||
<script src=/encrypted-media/util/fetch.js></script> | ||
|
||
<!-- Content metadata --> | ||
<script src=/encrypted-media/content/content-metadata.js></script> | ||
|
||
<!-- The script for this specific test --> | ||
<script src=/encrypted-media/scripts/syntax-mediakeysession.js></script> | ||
|
||
</head> | ||
<body> | ||
<div id='log'></div> | ||
<div id='video'> | ||
<video id="videoelement" width="200px"></video> | ||
</div> | ||
<script> | ||
var contentItem = content['mp4-basic'], | ||
config = { | ||
keysystem: 'org.w3.clearkey', | ||
content: contentItem, | ||
initDataType: 'keyids', | ||
initData: getInitData(contentItem, 'keyids'), | ||
audioType: contentItem.audio.type, | ||
videoType: contentItem.video.type | ||
}; | ||
runTest(config); | ||
</script> | ||
</body> | ||
</html> |
42 changes: 42 additions & 0 deletions
42
encrypted-media/clearkey-mp4-syntax-mediakeysystemaccess.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<title>Encrypted Media Extensions - Test navigator.requestmediakeysystemaccess exception and MediaKeySystemAccess attribute syntax for Clear Key, mp4</title> | ||
<link rel="help" href="https://w3c.github.io/encrypted-media/"> | ||
|
||
<!-- Web Platform Test Harness scripts --> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
|
||
<!-- Helper scripts for Encrypted Media Extensions tests --> | ||
<script src=/encrypted-media/util/utils.js></script> | ||
<script src=/encrypted-media/util/utf8.js></script> | ||
<script src=/encrypted-media/util/fetch.js></script> | ||
|
||
<!-- Content metadata --> | ||
<script src=/encrypted-media/content/content-metadata.js></script> | ||
|
||
<!-- The script for this specific test --> | ||
<script src=/encrypted-media/scripts/syntax-mediakeysystemaccess.js></script> | ||
|
||
</head> | ||
<body> | ||
<div id='log'></div> | ||
<div id='video'> | ||
<video id="videoelement" width="200px"></video> | ||
</div> | ||
<script> | ||
var contentItem = content['mp4-basic'], | ||
config = { | ||
keysystem: 'org.w3.clearkey', | ||
content: contentItem, | ||
initDataType: 'keyids', | ||
initData: getInitData(contentItem, 'keyids'), | ||
audioType: contentItem.audio.type, | ||
videoType: contentItem.video.type | ||
}; | ||
runTest(config); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<title>Encrypted Media Extensions - Test MediaKeys attribute, setServerCertificate and setServerCertificate exception syntax for DRM, mp4</title> | ||
<link rel="help" href="https://w3c.github.io/encrypted-media/"> | ||
|
||
<!-- Web Platform Test Harness scripts --> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
|
||
<!-- Helper scripts for Encrypted Media Extensions tests --> | ||
<script src=/encrypted-media/util/utils.js></script> | ||
<script src=/encrypted-media/util/utf8.js></script> | ||
<script src=/encrypted-media/util/fetch.js></script> | ||
|
||
<!-- Content metadata --> | ||
<script src=/encrypted-media/content/content-metadata.js></script> | ||
|
||
<!-- The script for this specific test --> | ||
<script src=/encrypted-media/scripts/syntax-mediakeys.js></script> | ||
|
||
</head> | ||
<body> | ||
<div id='log'></div> | ||
<div id='video'> | ||
<video id="videoelement" width="200px"></video> | ||
</div> | ||
<script> | ||
var keysystem = getSupportedKeySystem(); | ||
var contentItem = content['mp4-basic'], | ||
config = { | ||
keysystem: keysystem, | ||
content: contentItem, | ||
initData: stringToUint8Array(atob(contentItem.keys[0].initData)), | ||
initDataType: contentItem.initDataType, | ||
audioType: contentItem.audio.type, | ||
videoType: contentItem.video.type | ||
}; | ||
runTest(config); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<title>Encrypted Media Extensions - Test MediaKeySession attribute and function syntax for DRM, mp4</title> | ||
<link rel="help" href="https://w3c.github.io/encrypted-media/"> | ||
|
||
<!-- Web Platform Test Harness scripts --> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
|
||
<!-- Helper scripts for Encrypted Media Extensions tests --> | ||
<script src=/encrypted-media/util/utils.js></script> | ||
<script src=/encrypted-media/util/utf8.js></script> | ||
<script src=/encrypted-media/util/fetch.js></script> | ||
|
||
<!-- Content metadata --> | ||
<script src=/encrypted-media/content/content-metadata.js></script> | ||
|
||
<!-- The script for this specific test --> | ||
<script src=/encrypted-media/scripts/syntax-mediakeysession.js></script> | ||
|
||
</head> | ||
<body> | ||
<div id='log'></div> | ||
<div id='video'> | ||
<video id="videoelement" width="200px"></video> | ||
</div> | ||
<script> | ||
var keysystem = getSupportedKeySystem(); | ||
var contentItem = content['mp4-basic'], | ||
config = { | ||
keysystem: keysystem, | ||
content: contentItem, | ||
initData: stringToUint8Array(atob(contentItem.keys[0].initData)), | ||
initDataType: contentItem.initDataType, | ||
audioType: contentItem.audio.type, | ||
videoType: contentItem.video.type | ||
}; | ||
runTest(config); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<title>Encrypted Media Extensions - Test navigator.requestmediakeysystemaccess exception and MediaKeySystemAccess attribute syntax for DRM, mp4</title> | ||
<link rel="help" href="https://w3c.github.io/encrypted-media/"> | ||
|
||
<!-- Web Platform Test Harness scripts --> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
|
||
<!-- Helper scripts for Encrypted Media Extensions tests --> | ||
<script src=/encrypted-media/util/utils.js></script> | ||
<script src=/encrypted-media/util/utf8.js></script> | ||
<script src=/encrypted-media/util/fetch.js></script> | ||
|
||
<!-- Content metadata --> | ||
<script src=/encrypted-media/content/content-metadata.js></script> | ||
|
||
<!-- The script for this specific test --> | ||
<script src=/encrypted-media/scripts/syntax-mediakeysystemaccess.js></script> | ||
|
||
</head> | ||
<body> | ||
<div id='log'></div> | ||
<div id='video'> | ||
<video id="videoelement" width="200px"></video> | ||
</div> | ||
<script> | ||
var keysystem = getSupportedKeySystem(); | ||
var contentItem = content['mp4-basic'], | ||
config = { | ||
keysystem: keysystem, | ||
content: contentItem, | ||
initData: stringToUint8Array(atob(contentItem.keys[0].initData)), | ||
initDataType: contentItem.initDataType, | ||
audioType: contentItem.audio.type, | ||
videoType: contentItem.video.type | ||
}; | ||
runTest(config); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.