blob: d94515575359092725fe8dd0edaa4d670712ba34 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>fps-requestMediaKeySystemAccess</title>
<script src="../../../../media/video-test.js"></script>
<script>
var capabilities = [{
initDataTypes: ['sinf'],
videoCapabilities: [{ contentType: 'video/mp4', robustness: '' }],
distinctiveIdentifier: 'not-allowed',
persistentState: 'not-allowed',
sessionTypes: ['temporary'],
}];
var promise;
var access;
function startTest() {
run('promise = navigator.requestMediaKeySystemAccess("com.apple.fps", capabilities)');
shouldResolve(promise).then(gotAccess, endTest);
}
function gotAccess(access) {
window.access = access;
run('promise = access.createMediaKeys()');
shouldResolve(promise).then(endTest, endTest);
}
window.addEventListener('load', startTest);
</script>
</head>
<body>
</body>
</html>