Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
31
VApp/node_modules/@videojs/http-streaming/scripts/create-docs-images.js
generated
vendored
Normal file
31
VApp/node_modules/@videojs/http-streaming/scripts/create-docs-images.js
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/* eslint-disable no-console */
|
||||
const nomnoml = require('nomnoml');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const basePath = path.resolve(__dirname, '..');
|
||||
const docImageDir = path.join(basePath, 'docs/images');
|
||||
const nomnomlSourceDir = path.join(basePath, 'docs/images/sources');
|
||||
|
||||
const buildImages = {
|
||||
build() {
|
||||
const files = fs.readdirSync(nomnomlSourceDir);
|
||||
|
||||
while (files.length > 0) {
|
||||
const file = path.resolve(nomnomlSourceDir, files.shift());
|
||||
const basename = path.basename(file, 'txt');
|
||||
|
||||
if (/.nomnoml/.test(basename)) {
|
||||
const fileContents = fs.readFileSync(file, 'utf-8');
|
||||
const generated = nomnoml.renderSvg(fileContents);
|
||||
const newFilePath = path.join(docImageDir, basename) + 'svg';
|
||||
const outFile = fs.createWriteStream(newFilePath);
|
||||
|
||||
console.log(`wrote file ${newFilePath}`);
|
||||
outFile.write(generated);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
buildImages.build();
|
115
VApp/node_modules/@videojs/http-streaming/scripts/create-test-data.js
generated
vendored
Normal file
115
VApp/node_modules/@videojs/http-streaming/scripts/create-test-data.js
generated
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
/* global window */
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const baseDir = path.join(__dirname, '..');
|
||||
const manifestsDir = path.join(baseDir, 'test', 'manifests');
|
||||
const segmentsDir = path.join(baseDir, 'test', 'segments');
|
||||
|
||||
const base64ToUint8Array = function(base64) {
|
||||
const decoded = window.atob(base64);
|
||||
const uint8Array = new Uint8Array(new ArrayBuffer(decoded.length));
|
||||
|
||||
for (let i = 0; i < decoded.length; i++) {
|
||||
uint8Array[i] = decoded.charCodeAt(i);
|
||||
}
|
||||
|
||||
return uint8Array;
|
||||
};
|
||||
|
||||
const getManifests = () => (fs.readdirSync(manifestsDir) || [])
|
||||
.filter((f) => ((/\.(m3u8|mpd)/).test(path.extname(f))))
|
||||
.map((f) => path.resolve(manifestsDir, f));
|
||||
|
||||
const getSegments = () => (fs.readdirSync(segmentsDir) || [])
|
||||
.filter((f) => ((/\.(ts|mp4|key|webm|aac|ac3|vtt)/).test(path.extname(f))))
|
||||
.map((f) => path.resolve(segmentsDir, f));
|
||||
|
||||
const buildManifestString = function() {
|
||||
let manifests = 'export default {\n';
|
||||
|
||||
getManifests().forEach((file) => {
|
||||
// translate this manifest
|
||||
manifests += ' \'' + path.basename(file, path.extname(file)) + '\': ';
|
||||
manifests += fs.readFileSync(file, 'utf8')
|
||||
.split(/\r\n|\n/)
|
||||
// quote and concatenate
|
||||
.map((line) => ' \'' + line + '\\n\' +\n')
|
||||
.join('')
|
||||
// strip leading spaces and the trailing '+'
|
||||
.slice(4, -3);
|
||||
manifests += ',\n';
|
||||
});
|
||||
|
||||
// clean up and close the objects
|
||||
manifests = manifests.slice(0, -2);
|
||||
manifests += '\n};\n';
|
||||
|
||||
return manifests;
|
||||
};
|
||||
|
||||
const buildSegmentString = function() {
|
||||
const segmentData = {};
|
||||
|
||||
getSegments().forEach((file) => {
|
||||
// read the file directly as a buffer before converting to base64
|
||||
const base64Segment = fs.readFileSync(file).toString('base64');
|
||||
|
||||
segmentData[path.basename(file, path.extname(file))] = base64Segment;
|
||||
});
|
||||
|
||||
const segmentDataExportStrings = Object.keys(segmentData).reduce((acc, key) => {
|
||||
// use a function since the segment may be cleared out on usage
|
||||
acc.push(`export const ${key} = () => {
|
||||
cache.${key} = cache.${key} || base64ToUint8Array('${segmentData[key]}');
|
||||
const dest = new Uint8Array(cache.${key}.byteLength);
|
||||
dest.set(cache.${key});
|
||||
return dest;
|
||||
};`);
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
|
||||
const segmentsFile =
|
||||
'const cache = {};\n' +
|
||||
`const base64ToUint8Array = ${base64ToUint8Array.toString()};\n` +
|
||||
segmentDataExportStrings.join('\n');
|
||||
|
||||
return segmentsFile;
|
||||
};
|
||||
|
||||
/* we refer to them as .js, so that babel and other plugins can work on them */
|
||||
const segmentsKey = 'create-test-data!segments.js';
|
||||
const manifestsKey = 'create-test-data!manifests.js';
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
name: 'createTestData',
|
||||
buildStart() {
|
||||
this.addWatchFile(segmentsDir);
|
||||
this.addWatchFile(manifestsDir);
|
||||
|
||||
[].concat(getSegments())
|
||||
.concat(getManifests())
|
||||
.forEach((file) => this.addWatchFile(file));
|
||||
},
|
||||
resolveId(importee, importer) {
|
||||
// if this is not an id we can resolve return
|
||||
if (importee.indexOf('create-test-data!') !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const name = importee.split('!')[1];
|
||||
|
||||
return (name.indexOf('segments') === 0) ? segmentsKey : manifestsKey;
|
||||
},
|
||||
load(id) {
|
||||
if (id === segmentsKey) {
|
||||
return buildSegmentString.call(this);
|
||||
}
|
||||
|
||||
if (id === manifestsKey) {
|
||||
return buildManifestString.call(this);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
3553
VApp/node_modules/@videojs/http-streaming/scripts/dash-manifest-object.json
generated
vendored
Normal file
3553
VApp/node_modules/@videojs/http-streaming/scripts/dash-manifest-object.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
380
VApp/node_modules/@videojs/http-streaming/scripts/hls-manifest-object.json
generated
vendored
Normal file
380
VApp/node_modules/@videojs/http-streaming/scripts/hls-manifest-object.json
generated
vendored
Normal file
@ -0,0 +1,380 @@
|
||||
{
|
||||
"mediaGroups": {
|
||||
"AUDIO": {
|
||||
"audio": {
|
||||
"default": {
|
||||
"autoselect": true,
|
||||
"default": true,
|
||||
"language": "",
|
||||
"uri": "combined-audio-playlists",
|
||||
"playlists": [
|
||||
{
|
||||
"attributes": {},
|
||||
"segments": [
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s1.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s1.mp4",
|
||||
"number": 0
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s2.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s2.mp4",
|
||||
"number": 1
|
||||
},
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s3.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s3.mp4",
|
||||
"number": 2
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s4.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s4.mp4",
|
||||
"number": 3
|
||||
},
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s5.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s5.mp4",
|
||||
"number": 4
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s6.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s6.mp4",
|
||||
"number": 5
|
||||
},
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s7.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s7.mp4",
|
||||
"number": 6
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s8.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s8.mp4",
|
||||
"number": 7
|
||||
},
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s9.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s9.mp4",
|
||||
"number": 8
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s10.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s10.mp4",
|
||||
"number": 9
|
||||
},
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s11.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s11.mp4",
|
||||
"number": 10
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s12.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s12.mp4",
|
||||
"number": 11
|
||||
},
|
||||
{
|
||||
"duration": 4.011,
|
||||
"uri": "a-eng-0128k-aac-2c-s13.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s13.mp4",
|
||||
"number": 12
|
||||
},
|
||||
{
|
||||
"duration": 3.989,
|
||||
"uri": "a-eng-0128k-aac-2c-s14.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s14.mp4",
|
||||
"number": 13
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "a-eng-0128k-aac-2c-s15.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "a-eng-0128k-aac-2c-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/a-eng-0128k-aac-2c-s15.mp4",
|
||||
"number": 14
|
||||
}
|
||||
],
|
||||
"uri": "combined-playlist-audio",
|
||||
"resolvedUri": "combined-playlist-audio",
|
||||
"playlistType": "VOD",
|
||||
"endList": true,
|
||||
"mediaSequence": 0,
|
||||
"discontinuitySequence": 0,
|
||||
"discontinuityStarts": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"VIDEO": {},
|
||||
"CLOSED-CAPTIONS": {},
|
||||
"SUBTITLES": {}
|
||||
},
|
||||
"uri": "http://localhost:10000/",
|
||||
"playlists": [
|
||||
{
|
||||
"attributes": {
|
||||
"BANDWIDTH": 8062646,
|
||||
"CODECS": "avc1.4d401f,mp4a.40.2",
|
||||
"AUDIO": "audio"
|
||||
},
|
||||
"segments": [
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s1.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s1.mp4",
|
||||
"number": 0
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s2.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s2.mp4",
|
||||
"number": 1
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s3.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s3.mp4",
|
||||
"number": 2
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s4.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s4.mp4",
|
||||
"number": 3
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s5.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s5.mp4",
|
||||
"number": 4
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s6.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s6.mp4",
|
||||
"number": 5
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s7.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s7.mp4",
|
||||
"number": 6
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s8.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s8.mp4",
|
||||
"number": 7
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s9.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s9.mp4",
|
||||
"number": 8
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s10.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s10.mp4",
|
||||
"number": 9
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s11.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s11.mp4",
|
||||
"number": 10
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s12.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s12.mp4",
|
||||
"number": 11
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s13.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s13.mp4",
|
||||
"number": 12
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s14.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s14.mp4",
|
||||
"number": 13
|
||||
},
|
||||
{
|
||||
"duration": 4,
|
||||
"uri": "v-0576p-1400k-libx264-s15.mp4",
|
||||
"timeline": 0,
|
||||
"map": {
|
||||
"uri": "v-0576p-1400k-libx264-init.mp4",
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-init.mp4"
|
||||
},
|
||||
"resolvedUri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/v-0576p-1400k-libx264-s15.mp4",
|
||||
"number": 14
|
||||
}
|
||||
],
|
||||
"uri": "combined-playlist",
|
||||
"resolvedUri": "combined-playlist",
|
||||
"playlistType": "VOD",
|
||||
"endList": true,
|
||||
"mediaSequence": 0,
|
||||
"discontinuitySequence": 0,
|
||||
"discontinuityStarts": []
|
||||
}
|
||||
]
|
||||
}
|
850
VApp/node_modules/@videojs/http-streaming/scripts/index.js
generated
vendored
Normal file
850
VApp/node_modules/@videojs/http-streaming/scripts/index.js
generated
vendored
Normal file
@ -0,0 +1,850 @@
|
||||
/* global window document */
|
||||
/* eslint-disable vars-on-top, no-var, object-shorthand, no-console */
|
||||
(function(window) {
|
||||
var representationsEl = document.getElementById('representations');
|
||||
|
||||
representationsEl.addEventListener('change', function() {
|
||||
var selectedIndex = representationsEl.selectedIndex;
|
||||
|
||||
if (selectedIndex < 0 || !window.vhs) {
|
||||
return;
|
||||
}
|
||||
var selectedOption = representationsEl.options[representationsEl.selectedIndex];
|
||||
|
||||
if (!selectedOption) {
|
||||
return;
|
||||
}
|
||||
|
||||
var id = selectedOption.value;
|
||||
|
||||
window.vhs.representations().forEach(function(rep) {
|
||||
rep.playlist.disabled = rep.id !== id;
|
||||
});
|
||||
|
||||
window.pc.fastQualityChange_(selectedOption);
|
||||
});
|
||||
var isManifestObjectType = function(url) {
|
||||
return (/application\/vnd\.videojs\.vhs\+json/).test(url);
|
||||
};
|
||||
var hlsOptGroup = document.querySelector('[label="hls"]');
|
||||
var dashOptGroup = document.querySelector('[label="dash"]');
|
||||
var drmOptGroup = document.querySelector('[label="drm"]');
|
||||
var liveOptGroup = document.querySelector('[label="live"]');
|
||||
var llliveOptGroup = document.querySelector('[label="low latency live"]');
|
||||
var manifestOptGroup = document.querySelector('[label="json manifest object"]');
|
||||
|
||||
var sourceList;
|
||||
var hlsDataManifest;
|
||||
var dashDataManifest;
|
||||
|
||||
var addSourcesToDom = function() {
|
||||
if (!sourceList || !hlsDataManifest || !dashDataManifest) {
|
||||
return;
|
||||
}
|
||||
|
||||
sourceList.forEach(function(source) {
|
||||
var option = document.createElement('option');
|
||||
|
||||
option.innerText = source.name;
|
||||
option.value = source.uri;
|
||||
|
||||
if (source.keySystems) {
|
||||
option.setAttribute('data-key-systems', JSON.stringify(source.keySystems, null, 2));
|
||||
}
|
||||
|
||||
if (source.mimetype) {
|
||||
option.setAttribute('data-mimetype', source.mimetype);
|
||||
}
|
||||
|
||||
if (source.features.indexOf('low-latency') !== -1) {
|
||||
llliveOptGroup.appendChild(option);
|
||||
} else if (source.features.indexOf('live') !== -1) {
|
||||
liveOptGroup.appendChild(option);
|
||||
} else if (source.keySystems) {
|
||||
drmOptGroup.appendChild(option);
|
||||
} else if (source.mimetype === 'application/x-mpegurl') {
|
||||
hlsOptGroup.appendChild(option);
|
||||
} else if (source.mimetype === 'application/dash+xml') {
|
||||
dashOptGroup.appendChild(option);
|
||||
}
|
||||
});
|
||||
|
||||
var hlsOption = document.createElement('option');
|
||||
var dashOption = document.createElement('option');
|
||||
|
||||
dashOption.innerText = 'Dash Manifest Object Test, does not survive page reload';
|
||||
dashOption.value = `data:application/vnd.videojs.vhs+json,${dashDataManifest}`;
|
||||
hlsOption.innerText = 'HLS Manifest Object Test, does not survive page reload';
|
||||
hlsOption.value = `data:application/vnd.videojs.vhs+json,${hlsDataManifest}`;
|
||||
|
||||
manifestOptGroup.appendChild(hlsOption);
|
||||
manifestOptGroup.appendChild(dashOption);
|
||||
};
|
||||
|
||||
var sourcesXhr = new window.XMLHttpRequest();
|
||||
|
||||
sourcesXhr.addEventListener('load', function() {
|
||||
sourceList = JSON.parse(sourcesXhr.responseText);
|
||||
addSourcesToDom();
|
||||
});
|
||||
sourcesXhr.open('GET', './scripts/sources.json');
|
||||
sourcesXhr.send();
|
||||
|
||||
var hlsManifestXhr = new window.XMLHttpRequest();
|
||||
|
||||
hlsManifestXhr.addEventListener('load', function() {
|
||||
hlsDataManifest = hlsManifestXhr.responseText;
|
||||
addSourcesToDom();
|
||||
|
||||
});
|
||||
hlsManifestXhr.open('GET', './scripts/hls-manifest-object.json');
|
||||
hlsManifestXhr.send();
|
||||
|
||||
var dashManifestXhr = new window.XMLHttpRequest();
|
||||
|
||||
dashManifestXhr.addEventListener('load', function() {
|
||||
dashDataManifest = dashManifestXhr.responseText;
|
||||
addSourcesToDom();
|
||||
});
|
||||
dashManifestXhr.open('GET', './scripts/dash-manifest-object.json');
|
||||
dashManifestXhr.send();
|
||||
|
||||
// all relevant elements
|
||||
var urlButton = document.getElementById('load-url');
|
||||
var sources = document.getElementById('load-source');
|
||||
var stateEls = {};
|
||||
|
||||
var getInputValue = function(el) {
|
||||
if (el.type === 'url' || el.type === 'text' || el.nodeName.toLowerCase() === 'textarea') {
|
||||
if (isManifestObjectType(el.value)) {
|
||||
return '';
|
||||
}
|
||||
return encodeURIComponent(el.value);
|
||||
} else if (el.type === 'select-one') {
|
||||
return el.options[el.selectedIndex].value;
|
||||
} else if (el.type === 'checkbox') {
|
||||
return el.checked;
|
||||
}
|
||||
|
||||
console.warn('unhandled input type ' + el.type);
|
||||
return '';
|
||||
};
|
||||
|
||||
var setInputValue = function(el, value) {
|
||||
if (el.type === 'url' || el.type === 'text' || el.nodeName.toLowerCase() === 'textarea') {
|
||||
el.value = decodeURIComponent(value);
|
||||
} else if (el.type === 'select-one') {
|
||||
for (var i = 0; i < el.options.length; i++) {
|
||||
if (el.options[i].value === value) {
|
||||
el.options[i].selected = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// get the `value` into a Boolean.
|
||||
el.checked = JSON.parse(value);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
var newEvent = function(name) {
|
||||
var event;
|
||||
|
||||
if (typeof window.Event === 'function') {
|
||||
event = new window.Event(name);
|
||||
} else {
|
||||
event = document.createEvent('Event');
|
||||
event.initEvent(name, true, true);
|
||||
}
|
||||
|
||||
return event;
|
||||
};
|
||||
|
||||
// taken from video.js
|
||||
var getFileExtension = function(path) {
|
||||
var splitPathRe;
|
||||
var pathParts;
|
||||
|
||||
if (typeof path === 'string') {
|
||||
splitPathRe = /^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]*?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i;
|
||||
pathParts = splitPathRe.exec(path);
|
||||
|
||||
if (pathParts) {
|
||||
return pathParts.pop().toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
};
|
||||
|
||||
var saveState = function() {
|
||||
var query = '';
|
||||
|
||||
if (!window.history.replaceState) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.keys(stateEls).forEach(function(elName) {
|
||||
var symbol = query.length ? '&' : '?';
|
||||
|
||||
query += symbol + elName + '=' + getInputValue(stateEls[elName]);
|
||||
});
|
||||
|
||||
window.history.replaceState({}, 'vhs demo', query);
|
||||
};
|
||||
|
||||
window.URLSearchParams = window.URLSearchParams || function(locationSearch) {
|
||||
this.get = function(name) {
|
||||
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(locationSearch);
|
||||
|
||||
return results ? decodeURIComponent(results[1]) : null;
|
||||
};
|
||||
};
|
||||
|
||||
// eslint-disable-next-line
|
||||
var loadState = function() {
|
||||
var params = new window.URLSearchParams(window.location.search);
|
||||
|
||||
return Object.keys(stateEls).reduce(function(acc, elName) {
|
||||
acc[elName] = typeof params.get(elName) !== 'object' ? params.get(elName) : getInputValue(stateEls[elName]);
|
||||
return acc;
|
||||
}, {});
|
||||
};
|
||||
|
||||
// eslint-disable-next-line
|
||||
var reloadScripts = function(urls, cb) {
|
||||
var el = document.getElementById('reload-scripts');
|
||||
|
||||
if (!el) {
|
||||
el = document.createElement('div');
|
||||
el.id = 'reload-scripts';
|
||||
document.body.appendChild(el);
|
||||
}
|
||||
|
||||
while (el.firstChild) {
|
||||
el.removeChild(el.firstChild);
|
||||
}
|
||||
|
||||
var loaded = [];
|
||||
|
||||
var checkDone = function() {
|
||||
if (loaded.length === urls.length) {
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
||||
urls.forEach(function(url) {
|
||||
var script = document.createElement('script');
|
||||
|
||||
// scripts marked as defer will be loaded asynchronously but will be executed in the order they are in the DOM
|
||||
script.defer = true;
|
||||
// dynamically created scripts are async by default unless otherwise specified
|
||||
// async scripts are loaded asynchronously but also executed as soon as they are loaded
|
||||
// we want to load them in the order they are added therefore we want to turn off async
|
||||
script.async = false;
|
||||
script.src = url;
|
||||
script.onload = function() {
|
||||
loaded.push(url);
|
||||
checkDone();
|
||||
};
|
||||
el.appendChild(script);
|
||||
});
|
||||
};
|
||||
|
||||
var regenerateRepresentations = function() {
|
||||
while (representationsEl.firstChild) {
|
||||
representationsEl.removeChild(representationsEl.firstChild);
|
||||
}
|
||||
|
||||
var selectedIndex;
|
||||
|
||||
window.vhs.representations().forEach(function(rep, i) {
|
||||
var option = document.createElement('option');
|
||||
|
||||
option.value = rep.id;
|
||||
option.innerText = JSON.stringify({
|
||||
id: rep.id,
|
||||
videoCodec: rep.codecs.video,
|
||||
audioCodec: rep.codecs.audio,
|
||||
bandwidth: rep.bandwidth,
|
||||
heigth: rep.heigth,
|
||||
width: rep.width
|
||||
});
|
||||
|
||||
if (window.pc.media().id === rep.id) {
|
||||
selectedIndex = i;
|
||||
}
|
||||
|
||||
representationsEl.appendChild(option);
|
||||
});
|
||||
|
||||
representationsEl.selectedIndex = selectedIndex;
|
||||
};
|
||||
|
||||
function getBuffered(buffered) {
|
||||
var bufferedText = '';
|
||||
|
||||
if (!buffered) {
|
||||
return bufferedText;
|
||||
}
|
||||
|
||||
if (buffered.length) {
|
||||
bufferedText += buffered.start(0) + ' - ' + buffered.end(0);
|
||||
}
|
||||
for (var i = 1; i < buffered.length; i++) {
|
||||
bufferedText += ', ' + buffered.start(i) + ' - ' + buffered.end(i);
|
||||
}
|
||||
return bufferedText;
|
||||
}
|
||||
|
||||
var setupSegmentMetadata = function(player) {
|
||||
// setup segment metadata
|
||||
var segmentMetadata = document.querySelector('#segment-metadata');
|
||||
|
||||
player.one('loadedmetadata', function() {
|
||||
var tracks = player.textTracks();
|
||||
var segmentMetadataTrack;
|
||||
|
||||
for (var i = 0; i < tracks.length; i++) {
|
||||
if (tracks[i].label === 'segment-metadata') {
|
||||
segmentMetadataTrack = tracks[i];
|
||||
}
|
||||
}
|
||||
|
||||
while (segmentMetadata.children.length) {
|
||||
segmentMetadata.removeChild(segmentMetadata.firstChild);
|
||||
}
|
||||
|
||||
if (segmentMetadataTrack) {
|
||||
segmentMetadataTrack.addEventListener('cuechange', function() {
|
||||
var cues = segmentMetadataTrack.activeCues || [];
|
||||
|
||||
while (segmentMetadata.children.length) {
|
||||
segmentMetadata.removeChild(segmentMetadata.firstChild);
|
||||
}
|
||||
|
||||
for (var j = 0; j < cues.length; j++) {
|
||||
var text = JSON.stringify(JSON.parse(cues[j].text), null, 2);
|
||||
var li = document.createElement('li');
|
||||
var pre = document.createElement('pre');
|
||||
|
||||
pre.classList.add('border', 'rounded', 'p-2');
|
||||
pre.textContent = text;
|
||||
li.appendChild(pre);
|
||||
segmentMetadata.appendChild(li);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var setupPlayerStats = function(player) {
|
||||
player.on('dispose', () => {
|
||||
if (window.statsTimer) {
|
||||
window.clearInterval(window.statsTimer);
|
||||
window.statsTimer = null;
|
||||
}
|
||||
});
|
||||
var currentTimeStat = document.querySelector('.current-time-stat');
|
||||
var bufferedStat = document.querySelector('.buffered-stat');
|
||||
var videoBufferedStat = document.querySelector('.video-buffered-stat');
|
||||
var audioBufferedStat = document.querySelector('.audio-buffered-stat');
|
||||
var seekableStartStat = document.querySelector('.seekable-start-stat');
|
||||
var seekableEndStat = document.querySelector('.seekable-end-stat');
|
||||
var videoBitrateState = document.querySelector('.video-bitrate-stat');
|
||||
var measuredBitrateStat = document.querySelector('.measured-bitrate-stat');
|
||||
var videoTimestampOffset = document.querySelector('.video-timestampoffset');
|
||||
var audioTimestampOffset = document.querySelector('.audio-timestampoffset');
|
||||
|
||||
player.on('timeupdate', function() {
|
||||
currentTimeStat.textContent = player.currentTime().toFixed(1);
|
||||
});
|
||||
|
||||
window.statsTimer = window.setInterval(function() {
|
||||
var oldStart;
|
||||
var oldEnd;
|
||||
var seekable = player.seekable();
|
||||
|
||||
if (seekable && seekable.length) {
|
||||
|
||||
oldStart = seekableStartStat.textContent;
|
||||
if (seekable.start(0).toFixed(1) !== oldStart) {
|
||||
seekableStartStat.textContent = seekable.start(0).toFixed(1);
|
||||
}
|
||||
oldEnd = seekableEndStat.textContent;
|
||||
if (seekable.end(0).toFixed(1) !== oldEnd) {
|
||||
seekableEndStat.textContent = seekable.end(0).toFixed(1);
|
||||
}
|
||||
}
|
||||
|
||||
// buffered
|
||||
bufferedStat.textContent = getBuffered(player.buffered());
|
||||
|
||||
// exit early if no VHS
|
||||
if (!player.tech(true).vhs) {
|
||||
videoBufferedStat.textContent = '';
|
||||
audioBufferedStat.textContent = '';
|
||||
videoBitrateState.textContent = '';
|
||||
measuredBitrateStat.textContent = '';
|
||||
videoTimestampOffset.textContent = '';
|
||||
audioTimestampOffset.textContent = '';
|
||||
return;
|
||||
}
|
||||
|
||||
videoBufferedStat.textContent = getBuffered(player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.videoBuffer &&
|
||||
player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.videoBuffer.buffered);
|
||||
|
||||
// demuxed audio
|
||||
var audioBuffer = getBuffered(player.tech(true).vhs.playlistController_.audioSegmentLoader_.sourceUpdater_.audioBuffer &&
|
||||
player.tech(true).vhs.playlistController_.audioSegmentLoader_.sourceUpdater_.audioBuffer.buffered);
|
||||
|
||||
// muxed audio
|
||||
if (!audioBuffer) {
|
||||
audioBuffer = getBuffered(player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.audioBuffer &&
|
||||
player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.audioBuffer.buffered);
|
||||
}
|
||||
audioBufferedStat.textContent = audioBuffer;
|
||||
|
||||
if (player.tech(true).vhs.playlistController_.audioSegmentLoader_.sourceUpdater_.audioBuffer) {
|
||||
audioTimestampOffset.textContent = player.tech(true).vhs.playlistController_.audioSegmentLoader_.sourceUpdater_.audioBuffer.timestampOffset;
|
||||
|
||||
} else if (player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.audioBuffer) {
|
||||
audioTimestampOffset.textContent = player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.audioBuffer.timestampOffset;
|
||||
}
|
||||
|
||||
if (player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.videoBuffer) {
|
||||
videoTimestampOffset.textContent = player.tech(true).vhs.playlistController_.mainSegmentLoader_.sourceUpdater_.videoBuffer.timestampOffset;
|
||||
}
|
||||
|
||||
// bitrates
|
||||
var playlist = player.tech_.vhs.playlists.media();
|
||||
|
||||
if (playlist && playlist.attributes && playlist.attributes.BANDWIDTH) {
|
||||
videoBitrateState.textContent = (playlist.attributes.BANDWIDTH / 1024).toLocaleString(undefined, {
|
||||
maximumFractionDigits: 1
|
||||
}) + ' kbps';
|
||||
}
|
||||
if (player.tech_.vhs.bandwidth) {
|
||||
measuredBitrateStat.textContent = (player.tech_.vhs.bandwidth / 1024).toLocaleString(undefined, {
|
||||
maximumFractionDigits: 1
|
||||
}) + ' kbps';
|
||||
}
|
||||
|
||||
}, 100);
|
||||
};
|
||||
|
||||
var setupContentSteeringData = function(player) {
|
||||
var currentPathwayEl = document.querySelector('.current-pathway');
|
||||
var availablePathwaysEl = document.querySelector('.available-pathways');
|
||||
var steeringManifestEl = document.querySelector('.steering-manifest');
|
||||
|
||||
player.one('loadedmetadata', function() {
|
||||
var steeringController = player.tech_.vhs && player.tech_.vhs.playlistController_.contentSteeringController_;
|
||||
|
||||
if (!steeringController) {
|
||||
return;
|
||||
}
|
||||
var onContentSteering = function() {
|
||||
currentPathwayEl.textContent = steeringController.currentPathway;
|
||||
availablePathwaysEl.textContent = Array.from(steeringController.availablePathways_).join(', ');
|
||||
steeringManifestEl.textContent = JSON.stringify(steeringController.steeringManifest);
|
||||
};
|
||||
|
||||
steeringController.on('content-steering', onContentSteering);
|
||||
});
|
||||
};
|
||||
|
||||
[
|
||||
'debug',
|
||||
'autoplay',
|
||||
'muted',
|
||||
'fluid',
|
||||
'minified',
|
||||
'sync-workers',
|
||||
'liveui',
|
||||
'llhls',
|
||||
'url',
|
||||
'type',
|
||||
'keysystems',
|
||||
'buffer-water',
|
||||
'exact-manifest-timings',
|
||||
'pixel-diff-selector',
|
||||
'network-info',
|
||||
'dts-offset',
|
||||
'override-native',
|
||||
'object-fit',
|
||||
'use-mms',
|
||||
'preload',
|
||||
'mirror-source',
|
||||
'forced-subtitles',
|
||||
'native-text-tracks'
|
||||
].forEach(function(name) {
|
||||
stateEls[name] = document.getElementById(name);
|
||||
});
|
||||
|
||||
window.startDemo = function(cb) {
|
||||
var state = loadState();
|
||||
|
||||
Object.keys(state).forEach(function(elName) {
|
||||
setInputValue(stateEls[elName], state[elName]);
|
||||
});
|
||||
|
||||
Array.prototype.forEach.call(sources.options, function(s, i) {
|
||||
if (s.value === state.url) {
|
||||
sources.selectedIndex = i;
|
||||
}
|
||||
});
|
||||
|
||||
stateEls.fluid.addEventListener('change', function(event) {
|
||||
saveState();
|
||||
if (event.target.checked) {
|
||||
window['player-fixture'].style.aspectRatio = '16/9';
|
||||
window['player-fixture'].style.minHeight = 'initial';
|
||||
} else {
|
||||
window['player-fixture'].style.aspectRatio = '';
|
||||
window['player-fixture'].style.minHeight = '250px';
|
||||
}
|
||||
window.player.fluid(event.target.checked);
|
||||
});
|
||||
|
||||
stateEls.muted.addEventListener('change', function(event) {
|
||||
saveState();
|
||||
window.player.muted(event.target.checked);
|
||||
});
|
||||
|
||||
stateEls.autoplay.addEventListener('change', function(event) {
|
||||
saveState();
|
||||
window.player.autoplay(event.target.checked);
|
||||
});
|
||||
|
||||
// stateEls that reload the player and scripts
|
||||
[
|
||||
'mirror-source',
|
||||
'sync-workers',
|
||||
'preload',
|
||||
'llhls',
|
||||
'buffer-water',
|
||||
'override-native',
|
||||
'object-fit',
|
||||
'use-mms',
|
||||
'liveui',
|
||||
'pixel-diff-selector',
|
||||
'network-info',
|
||||
'dts-offset',
|
||||
'exact-manifest-timings',
|
||||
'forced-subtitles',
|
||||
'native-text-tracks'
|
||||
].forEach(function(name) {
|
||||
stateEls[name].addEventListener('change', function(event) {
|
||||
saveState();
|
||||
|
||||
stateEls.minified.dispatchEvent(newEvent('change'));
|
||||
});
|
||||
});
|
||||
|
||||
[
|
||||
'llhls'
|
||||
].forEach(function(name) {
|
||||
stateEls[name].checked = true;
|
||||
});
|
||||
|
||||
[
|
||||
'exact-manifest-timings',
|
||||
'pixel-diff-selector',
|
||||
'buffer-water'
|
||||
].forEach(function(name) {
|
||||
stateEls[name].checked = false;
|
||||
});
|
||||
|
||||
stateEls.debug.addEventListener('change', function(event) {
|
||||
saveState();
|
||||
window.videojs.log.level(event.target.checked ? 'debug' : 'info');
|
||||
});
|
||||
|
||||
stateEls.minified.addEventListener('change', function(event) {
|
||||
var urls = [
|
||||
'node_modules/video.js/dist/alt/video.core',
|
||||
'node_modules/videojs-contrib-eme/dist/videojs-contrib-eme',
|
||||
'node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels',
|
||||
'node_modules/videojs-contrib-quality-menu/dist/videojs-contrib-quality-menu'
|
||||
|
||||
].map(function(url) {
|
||||
return url + (event.target.checked ? '.min' : '') + '.js';
|
||||
});
|
||||
|
||||
if (stateEls['sync-workers'].checked) {
|
||||
urls.push('dist/videojs-http-streaming-sync-workers.js');
|
||||
} else {
|
||||
urls.push('dist/videojs-http-streaming' + (event.target.checked ? '.min' : '') + '.js');
|
||||
}
|
||||
|
||||
saveState();
|
||||
|
||||
if (window.player) {
|
||||
window.player.dispose();
|
||||
delete window.player;
|
||||
}
|
||||
if (window.videojs) {
|
||||
delete window.videojs;
|
||||
}
|
||||
|
||||
reloadScripts(urls, function() {
|
||||
var player;
|
||||
var fixture = document.getElementById('player-fixture');
|
||||
var videoEl = document.createElement('video-js');
|
||||
|
||||
videoEl.setAttribute('controls', '');
|
||||
videoEl.setAttribute('playsInline', '');
|
||||
videoEl.setAttribute('preload', stateEls.preload.options[stateEls.preload.selectedIndex].value || 'auto');
|
||||
videoEl.className = 'vjs-default-skin';
|
||||
fixture.appendChild(videoEl);
|
||||
|
||||
var mirrorSource = getInputValue(stateEls['mirror-source']);
|
||||
|
||||
player = window.player = window.videojs(videoEl, {
|
||||
plugins: {
|
||||
qualityMenu: {}
|
||||
},
|
||||
liveui: stateEls.liveui.checked,
|
||||
enableSourceset: mirrorSource,
|
||||
html5: {
|
||||
nativeTextTracks: getInputValue(stateEls['native-text-tracks']),
|
||||
vhs: {
|
||||
overrideNative: getInputValue(stateEls['override-native']),
|
||||
experimentalUseMMS: getInputValue(stateEls['use-mms']),
|
||||
bufferBasedABR: getInputValue(stateEls['buffer-water']),
|
||||
llhls: getInputValue(stateEls.llhls),
|
||||
exactManifestTimings: getInputValue(stateEls['exact-manifest-timings']),
|
||||
leastPixelDiffSelector: getInputValue(stateEls['pixel-diff-selector']),
|
||||
useNetworkInformationApi: getInputValue(stateEls['network-info']),
|
||||
useDtsForTimestampOffset: getInputValue(stateEls['dts-offset']),
|
||||
useForcedSubtitles: getInputValue(stateEls['forced-subtitles']),
|
||||
usePlayerObjectFit: getInputValue(stateEls['object-fit'])
|
||||
}
|
||||
}
|
||||
});
|
||||
setupPlayerStats(player);
|
||||
setupSegmentMetadata(player);
|
||||
setupContentSteeringData(player);
|
||||
|
||||
// save player muted state interation
|
||||
player.on('volumechange', function() {
|
||||
if (stateEls.muted.checked !== player.muted()) {
|
||||
stateEls.muted.checked = player.muted();
|
||||
saveState();
|
||||
}
|
||||
});
|
||||
|
||||
player.on('sourceset', function() {
|
||||
var source = player.currentSource();
|
||||
|
||||
if (source.keySystems) {
|
||||
var copy = JSON.parse(JSON.stringify(source.keySystems));
|
||||
|
||||
// have to delete pssh as it will often make keySystems too big
|
||||
// for a uri
|
||||
Object.keys(copy).forEach(function(key) {
|
||||
if (copy[key].hasOwnProperty('pssh')) {
|
||||
delete copy[key].pssh;
|
||||
}
|
||||
});
|
||||
|
||||
stateEls.keysystems.value = JSON.stringify(copy, null, 2);
|
||||
}
|
||||
|
||||
if (source.src) {
|
||||
stateEls.url.value = encodeURI(source.src);
|
||||
}
|
||||
|
||||
if (source.type) {
|
||||
stateEls.type.value = source.type;
|
||||
}
|
||||
|
||||
saveState();
|
||||
});
|
||||
|
||||
player.width(640);
|
||||
player.height(264);
|
||||
|
||||
// configure videojs-contrib-eme
|
||||
player.eme();
|
||||
|
||||
stateEls.debug.dispatchEvent(newEvent('change'));
|
||||
stateEls.muted.dispatchEvent(newEvent('change'));
|
||||
stateEls.fluid.dispatchEvent(newEvent('change'));
|
||||
stateEls.autoplay.dispatchEvent(newEvent('change'));
|
||||
|
||||
// run the load url handler for the intial source
|
||||
if (stateEls.url.value) {
|
||||
urlButton.dispatchEvent(newEvent('click'));
|
||||
} else {
|
||||
sources.dispatchEvent(newEvent('change'));
|
||||
}
|
||||
player.on('loadedmetadata', function() {
|
||||
if (player.tech_.vhs) {
|
||||
window.vhs = player.tech_.vhs;
|
||||
window.pc = player.tech_.vhs.playlistController_;
|
||||
window.pc.mainPlaylistLoader_.on('mediachange', regenerateRepresentations);
|
||||
regenerateRepresentations();
|
||||
|
||||
} else {
|
||||
window.vhs = null;
|
||||
window.pc = null;
|
||||
}
|
||||
});
|
||||
cb(player);
|
||||
});
|
||||
});
|
||||
|
||||
var urlButtonClick = function(event) {
|
||||
var ext;
|
||||
var type = stateEls.type.value;
|
||||
|
||||
// reset type if it's a manifest object's type
|
||||
if (type === 'application/vnd.videojs.vhs+json') {
|
||||
type = '';
|
||||
}
|
||||
|
||||
if (isManifestObjectType(stateEls.url.value)) {
|
||||
type = 'application/vnd.videojs.vhs+json';
|
||||
}
|
||||
|
||||
if (!type.trim()) {
|
||||
ext = getFileExtension(stateEls.url.value);
|
||||
|
||||
if (ext === 'mpd') {
|
||||
type = 'application/dash+xml';
|
||||
} else if (ext === 'm3u8') {
|
||||
type = 'application/x-mpegURL';
|
||||
}
|
||||
}
|
||||
|
||||
saveState();
|
||||
|
||||
var source = {
|
||||
src: stateEls.url.value,
|
||||
type: type
|
||||
};
|
||||
|
||||
if (stateEls.keysystems.value) {
|
||||
source.keySystems = JSON.parse(stateEls.keysystems.value);
|
||||
}
|
||||
|
||||
sources.selectedIndex = -1;
|
||||
|
||||
Array.prototype.forEach.call(sources.options, function(s, i) {
|
||||
if (s.value === stateEls.url.value) {
|
||||
sources.selectedIndex = i;
|
||||
}
|
||||
});
|
||||
|
||||
window.player.src(source);
|
||||
};
|
||||
|
||||
urlButton.addEventListener('click', urlButtonClick);
|
||||
urlButton.addEventListener('tap', urlButtonClick);
|
||||
|
||||
sources.addEventListener('change', function(event) {
|
||||
var selectedOption = sources.options[sources.selectedIndex];
|
||||
|
||||
if (!selectedOption) {
|
||||
return;
|
||||
}
|
||||
var src = selectedOption.value;
|
||||
|
||||
stateEls.url.value = src;
|
||||
stateEls.type.value = selectedOption.getAttribute('data-mimetype');
|
||||
stateEls.keysystems.value = selectedOption.getAttribute('data-key-systems');
|
||||
|
||||
urlButton.dispatchEvent(newEvent('click'));
|
||||
});
|
||||
|
||||
stateEls.url.addEventListener('keyup', function(event) {
|
||||
if (event.key === 'Enter') {
|
||||
urlButton.click();
|
||||
}
|
||||
});
|
||||
stateEls.url.addEventListener('input', function(event) {
|
||||
if (stateEls.type.value.length) {
|
||||
stateEls.type.value = '';
|
||||
}
|
||||
});
|
||||
stateEls.type.addEventListener('keyup', function(event) {
|
||||
if (event.key === 'Enter') {
|
||||
urlButton.click();
|
||||
}
|
||||
});
|
||||
|
||||
// run the change handler for the first time
|
||||
stateEls.minified.dispatchEvent(newEvent('change'));
|
||||
|
||||
// Setup the download / copy log buttons
|
||||
const downloadLogsButton = document.getElementById('download-logs');
|
||||
const copyLogsButton = document.getElementById('copy-logs');
|
||||
|
||||
/**
|
||||
* Window location and history joined with line breaks, stringifying any objects
|
||||
*
|
||||
* @return {string} Stringified history
|
||||
*/
|
||||
const stringifiedLogHistory = () => {
|
||||
const player = document.querySelector('video-js').player;
|
||||
const logs = [].concat(player.log.history());
|
||||
const withVhs = !!player.tech(true).vhs;
|
||||
|
||||
return [
|
||||
window.location.href,
|
||||
window.navigator.userAgent,
|
||||
`Video.js ${window.videojs.VERSION}`,
|
||||
`Using VHS: ${withVhs}`,
|
||||
withVhs ? JSON.stringify(player.tech(true).vhs.version()) : ''
|
||||
].concat(logs.map(entryArgs => {
|
||||
return entryArgs.map(item => {
|
||||
return typeof item === 'object' ? JSON.stringify(item) : item;
|
||||
});
|
||||
})).join('\n');
|
||||
};
|
||||
|
||||
/**
|
||||
* Turn a bootstrap button class on briefly then revert to btn-outline-ptimary
|
||||
*
|
||||
* @param {HTMLElement} el Element to add class to
|
||||
* @param {string} stateClass Bootstrap button class suffix
|
||||
*/
|
||||
const doneFeedback = (el, stateClass) => {
|
||||
el.classList.add(`btn-${stateClass}`);
|
||||
el.classList.remove('btn-outline-secondary');
|
||||
|
||||
window.setTimeout(() => {
|
||||
el.classList.add('btn-outline-secondary');
|
||||
el.classList.remove(`btn-${stateClass}`);
|
||||
}, 1500);
|
||||
};
|
||||
|
||||
downloadLogsButton.addEventListener('click', function() {
|
||||
const logHistory = stringifiedLogHistory();
|
||||
const a = document.createElement('a');
|
||||
const href = URL.createObjectURL(new Blob([logHistory], { type: 'text/plain' }));
|
||||
|
||||
a.setAttribute('download', 'vhs-player-logs.txt');
|
||||
a.setAttribute('target', '_blank');
|
||||
a.href = href;
|
||||
a.click();
|
||||
a.remove();
|
||||
URL.revokeObjectURL(href);
|
||||
doneFeedback(downloadLogsButton, 'success');
|
||||
});
|
||||
|
||||
copyLogsButton.addEventListener('click', function() {
|
||||
const logHistory = stringifiedLogHistory();
|
||||
|
||||
window.navigator.clipboard.writeText(logHistory).then(z => {
|
||||
doneFeedback(copyLogsButton, 'success');
|
||||
}).catch(e => {
|
||||
doneFeedback(copyLogsButton, 'danger');
|
||||
console.log('Copy failed', e);
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
}(window));
|
41
VApp/node_modules/@videojs/http-streaming/scripts/karma.conf.js
generated
vendored
Normal file
41
VApp/node_modules/@videojs/http-streaming/scripts/karma.conf.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
const generate = require('videojs-generate-karma-config');
|
||||
const CI_TEST_TYPE = process.env.CI_TEST_TYPE || '';
|
||||
|
||||
module.exports = function(config) {
|
||||
|
||||
// see https://github.com/videojs/videojs-generate-karma-config
|
||||
// for options
|
||||
const options = {
|
||||
coverage: CI_TEST_TYPE === 'coverage' ? true : false,
|
||||
preferHeadless: false,
|
||||
browsers(aboutToRun) {
|
||||
return aboutToRun.filter(function(launcherName) {
|
||||
return !(/(Safari|Chromium)/).test(launcherName);
|
||||
});
|
||||
},
|
||||
files(defaults) {
|
||||
defaults.splice(
|
||||
defaults.indexOf('node_modules/video.js/dist/video.js'),
|
||||
1,
|
||||
'node_modules/video.js/dist/alt/video.core.js'
|
||||
);
|
||||
|
||||
return defaults;
|
||||
},
|
||||
browserstackLaunchers(defaults) {
|
||||
// do not run on browserstack for coverage
|
||||
if (CI_TEST_TYPE === 'coverage') {
|
||||
defaults = {};
|
||||
}
|
||||
|
||||
return defaults;
|
||||
},
|
||||
serverBrowsers() {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
config = generate(config, options);
|
||||
|
||||
// any other custom stuff not supported by options here!
|
||||
};
|
41
VApp/node_modules/@videojs/http-streaming/scripts/netlify.js
generated
vendored
Normal file
41
VApp/node_modules/@videojs/http-streaming/scripts/netlify.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
const path = require('path');
|
||||
const sh = require('shelljs');
|
||||
|
||||
const deployDir = 'deploy';
|
||||
const files = [
|
||||
'node_modules/video.js/dist/video-js.css',
|
||||
'node_modules/video.js/dist/alt/video.core.js',
|
||||
'node_modules/video.js/dist/alt/video.core.min.js',
|
||||
'node_modules/videojs-contrib-eme/dist/videojs-contrib-eme.js',
|
||||
'node_modules/videojs-contrib-eme/dist/videojs-contrib-eme.min.js',
|
||||
'node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.js',
|
||||
'node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.min.js',
|
||||
'node_modules/videojs-contrib-quality-menu/dist/videojs-contrib-quality-menu.css',
|
||||
'node_modules/videojs-contrib-quality-menu/dist/videojs-contrib-quality-menu.js',
|
||||
'node_modules/videojs-contrib-quality-menu/dist/videojs-contrib-quality-menu.min.js',
|
||||
'node_modules/bootstrap/dist/js/bootstrap.js',
|
||||
'node_modules/bootstrap/dist/css/bootstrap.css',
|
||||
'node_modules/d3/d3.min.js',
|
||||
'logo.svg',
|
||||
'scripts/sources.json',
|
||||
'scripts/index.js',
|
||||
'scripts/old-index.js',
|
||||
'scripts/dash-manifest-object.json',
|
||||
'scripts/hls-manifest-object.json',
|
||||
'test/dist/bundle.js'
|
||||
];
|
||||
|
||||
// cleanup previous deploy
|
||||
sh.rm('-rf', deployDir);
|
||||
// make sure the directory exists
|
||||
sh.mkdir('-p', deployDir);
|
||||
|
||||
// create nested directories
|
||||
files
|
||||
.map((file) => path.dirname(file))
|
||||
.forEach((dir) => sh.mkdir('-p', path.join(deployDir, dir)));
|
||||
|
||||
// copy files/folders to deploy dir
|
||||
files
|
||||
.concat('dist', 'index.html', 'old-index.html', 'utils')
|
||||
.forEach((file) => sh.cp('-r', file, path.join(deployDir, file)));
|
135
VApp/node_modules/@videojs/http-streaming/scripts/rollup.config.js
generated
vendored
Normal file
135
VApp/node_modules/@videojs/http-streaming/scripts/rollup.config.js
generated
vendored
Normal file
@ -0,0 +1,135 @@
|
||||
const generate = require('videojs-generate-rollup-config');
|
||||
const worker = require('rollup-plugin-worker-factory');
|
||||
const {terser} = require('rollup-plugin-terser');
|
||||
const createTestData = require('./create-test-data.js');
|
||||
const replace = require('@rollup/plugin-replace');
|
||||
const strip = require('@rollup/plugin-strip');
|
||||
|
||||
const CI_TEST_TYPE = process.env.CI_TEST_TYPE || '';
|
||||
|
||||
let syncWorker;
|
||||
// see https://github.com/videojs/videojs-generate-rollup-config
|
||||
// for options
|
||||
const options = {
|
||||
input: 'src/videojs-http-streaming.js',
|
||||
distName: 'videojs-http-streaming',
|
||||
excludeCoverage(defaults) {
|
||||
defaults.push(/^rollup-plugin-worker-factory/);
|
||||
defaults.push(/^create-test-data!/);
|
||||
|
||||
return defaults;
|
||||
},
|
||||
globals(defaults) {
|
||||
defaults.browser['@xmldom/xmldom'] = 'window';
|
||||
defaults.test['@xmldom/xmldom'] = 'window';
|
||||
return defaults;
|
||||
},
|
||||
externals(defaults) {
|
||||
return Object.assign(defaults, {
|
||||
module: defaults.module.concat([
|
||||
'aes-decrypter',
|
||||
'm3u8-parser',
|
||||
'mpd-parser',
|
||||
'mux.js',
|
||||
'@videojs/vhs-utils'
|
||||
])
|
||||
});
|
||||
},
|
||||
plugins(defaults) {
|
||||
// add worker and createTestData to the front of plugin lists
|
||||
defaults.module.unshift('worker');
|
||||
defaults.browser.unshift('worker');
|
||||
// change this to `syncWorker` for syncronous web worker
|
||||
// during unit tests
|
||||
if (CI_TEST_TYPE === 'coverage') {
|
||||
defaults.test.unshift('syncWorker');
|
||||
} else {
|
||||
defaults.test.unshift('worker');
|
||||
}
|
||||
defaults.test.unshift('createTestData');
|
||||
|
||||
if (CI_TEST_TYPE === 'playback-min') {
|
||||
defaults.test.push('uglify');
|
||||
}
|
||||
|
||||
// istanbul is only in the list for regular builds and not watch
|
||||
if (CI_TEST_TYPE !== 'coverage' && defaults.test.indexOf('istanbul') !== -1) {
|
||||
defaults.test.splice(defaults.test.indexOf('istanbul'), 1);
|
||||
}
|
||||
defaults.module.unshift('replace');
|
||||
|
||||
defaults.module.unshift('strip');
|
||||
defaults.browser.unshift('strip');
|
||||
|
||||
return defaults;
|
||||
},
|
||||
primedPlugins(defaults) {
|
||||
defaults = Object.assign(defaults, {
|
||||
replace: replace({
|
||||
// single quote replace
|
||||
"require('@videojs/vhs-utils/es": "require('@videojs/vhs-utils/cjs",
|
||||
// double quote replace
|
||||
'require("@videojs/vhs-utils/es': 'require("@videojs/vhs-utils/cjs'
|
||||
}),
|
||||
uglify: terser({
|
||||
output: {comments: 'some'},
|
||||
compress: {passes: 2}
|
||||
}),
|
||||
strip: strip({
|
||||
functions: ['TEST_ONLY_*'],
|
||||
debugger: false,
|
||||
sourceMap: false
|
||||
}),
|
||||
createTestData: createTestData()
|
||||
});
|
||||
|
||||
defaults.worker = worker({type: 'browser', plugins: [
|
||||
defaults.resolve,
|
||||
defaults.json,
|
||||
defaults.commonjs,
|
||||
defaults.babel
|
||||
]});
|
||||
|
||||
defaults.syncWorker = syncWorker = worker({type: 'mock', plugins: [
|
||||
defaults.resolve,
|
||||
defaults.json,
|
||||
defaults.commonjs,
|
||||
defaults.babel
|
||||
]});
|
||||
|
||||
return defaults;
|
||||
},
|
||||
babel(defaults) {
|
||||
const presetEnvSettings = defaults.presets[0][1];
|
||||
|
||||
presetEnvSettings.exclude = presetEnvSettings.exclude || [];
|
||||
presetEnvSettings.exclude.push('@babel/plugin-transform-typeof-symbol');
|
||||
|
||||
return defaults;
|
||||
}
|
||||
};
|
||||
|
||||
if (CI_TEST_TYPE === 'playback' || CI_TEST_TYPE === 'playback-min') {
|
||||
options.testInput = 'test/playback.test.js';
|
||||
} else if (CI_TEST_TYPE === 'unit' || CI_TEST_TYPE === 'coverage') {
|
||||
options.testInput = {include: ['test/**/*.test.js'], exclude: ['test/playback.test.js']};
|
||||
}
|
||||
|
||||
const config = generate(options);
|
||||
|
||||
if (config.builds.browser) {
|
||||
config.builds.syncWorkers = config.makeBuild('browser', {
|
||||
output: {
|
||||
name: 'httpStreaming',
|
||||
format: 'umd',
|
||||
file: 'dist/videojs-http-streaming-sync-workers.js'
|
||||
}
|
||||
});
|
||||
|
||||
config.builds.syncWorkers.plugins[0] = syncWorker;
|
||||
}
|
||||
|
||||
// Add additonal builds/customization here!
|
||||
|
||||
// export the builds to rollup
|
||||
export default Object.values(config.builds);
|
447
VApp/node_modules/@videojs/http-streaming/scripts/sources.json
generated
vendored
Normal file
447
VApp/node_modules/@videojs/http-streaming/scripts/sources.json
generated
vendored
Normal file
@ -0,0 +1,447 @@
|
||||
[
|
||||
{
|
||||
"name": "Bipbop - Muxed TS with 1 alt Audio, 5 captions",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "FMP4 and ts both muxed",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/ts-fmp4/index.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Advanced Bipbop - ts and captions muxed",
|
||||
"uri": "https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Advanced Bipbop - FMP4 and captions muxed",
|
||||
"uri": "https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Advanced Bipbop - FMP4 hevc, demuxed",
|
||||
"uri": "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Angel One - FMP4 demuxed, many audio/captions",
|
||||
"uri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/hls.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Parkour - FMP4 demuxed",
|
||||
"uri": "https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Song - ts Audio only",
|
||||
"uri": "https://s3.amazonaws.com/qa.jwplayer.com/~alex/121628/new_master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Coit Tower drone footage - 4 8 second segment",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/CoitTower/master_ts_segtimes.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Disney's Oceans trailer - HLSe, ts Encrypted",
|
||||
"uri": "https://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Sintel - ts with audio/subs and a 4k rendtion",
|
||||
"uri": "https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Boat Ipsum Subs - HLS + subtitles",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/hls-webvtt/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Boat Video Only",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/video-only/out.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Boat Audio Only",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/audio-only/out.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Boat 4K",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/4k-hls/out.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Boat Misaligned - 3, 5, 7, second segment playlists",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/misaligned-playlists/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "BBB-CMIF: Big Buck Bunny Dark Truths - demuxed, fmp4",
|
||||
"uri": "https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths-hls/hls.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Big Buck Bunny - demuxed audio/video, includes 4K, burns in frame, pts, resolution, bitrate values",
|
||||
"uri": "https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Angel One - fmp4, webm, subs (TODO: subs are broken), alternate audio tracks",
|
||||
"uri": "https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Angel One - Widevine, fmp4, webm, subs, alternate audio tracks",
|
||||
"uri": "https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": "https://cwip-shaka-proxy.appspot.com/no_auth"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "BBB-CMIF: Big Buck Bunny Dark Truths - demuxed, fmp4",
|
||||
"uri": "https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths/dash.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "SIDX demuxed, 2 audio",
|
||||
"uri": "https://dash.akamaized.net/dash264/TestCases/10a/1/iis_forest_short_poem_multi_lang_480p_single_adapt_aaclc_sidx.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "SIDX bipbop-like",
|
||||
"uri": "https://download.tsi.telecom-paristech.fr/gpac/DASH_CONFORMANCE/TelecomParisTech/mp4-onDemand/mp4-onDemand-mpd-AV.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Google self-driving car - SIDX",
|
||||
"uri": "https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Sintel - single rendition",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/sintel_dash/sintel_vod.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "HLS - Live - Axinom live stream, may not always be available",
|
||||
"uri": "https://akamai-axtest.akamaized.net/routes/lapd-v1-acceptance/www_c4/Manifest.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "DASH - Live - Axinom live stream, may not always be available",
|
||||
"uri": "https://akamai-axtest.akamaized.net/routes/lapd-v1-acceptance/www_c4/Manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "DASH - Live simulated DASH from DASH IF",
|
||||
"uri": "https://livesim.dashif.org/livesim/mup_30/testpic_2s/Manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "DASH - Shaka Player Source Simulated Live",
|
||||
"uri": "https://storage.googleapis.com/shaka-live-assets/player-source.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "Apple's LL-HLS test stream",
|
||||
"uri": "https://ll-hls-test.apple.com/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live", "low-latency"]
|
||||
},
|
||||
{
|
||||
"name": "Apple's LL-HLS test stream, cmaf, fmp4",
|
||||
"uri": "https://ll-hls-test.apple.com/cmaf/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live", "low-latency"]
|
||||
},
|
||||
{
|
||||
"name": "Mux's LL-HLS test stream",
|
||||
"uri": "https://stream.mux.com/v69RSHhFelSm4701snP22dYz2jICy4E4FUyk02rW4gxRM.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live", "low-latency"]
|
||||
},
|
||||
{
|
||||
"name": "Axinom Multi DRM - DASH, 4k, HEVC, Playready, Widevine",
|
||||
"uri": "https://media.axprod.net/TestVectors/v7-MultiDRM-SingleKey/Manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.microsoft.playready": {
|
||||
"url": "https://drm-playready-licensing.axtest.net/AcquireLicense",
|
||||
"licenseHeaders": {
|
||||
"X-AxDRM-Message": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImtleXMiOlt7ImlkIjoiOWViNDA1MGQtZTQ0Yi00ODAyLTkzMmUtMjdkNzUwODNlMjY2IiwiZW5jcnlwdGVkX2tleSI6ImxLM09qSExZVzI0Y3Iya3RSNzRmbnc9PSJ9XX19.4lWwW46k-oWcah8oN18LPj5OLS5ZU-_AQv7fe0JhNjA"
|
||||
}
|
||||
},
|
||||
"com.widevine.alpha": {
|
||||
"url": "https://drm-widevine-licensing.axtest.net/AcquireLicense",
|
||||
"licenseHeaders": {
|
||||
"X-AxDRM-Message": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImtleXMiOlt7ImlkIjoiOWViNDA1MGQtZTQ0Yi00ODAyLTkzMmUtMjdkNzUwODNlMjY2IiwiZW5jcnlwdGVkX2tleSI6ImxLM09qSExZVzI0Y3Iya3RSNzRmbnc9PSJ9XX19.4lWwW46k-oWcah8oN18LPj5OLS5ZU-_AQv7fe0JhNjA"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Axinom Multi DRM, Multi Period - DASH, 4k, HEVC, Playready, Widevine",
|
||||
"uri": "https://media.axprod.net/TestVectors/v7-MultiDRM-MultiKey-MultiPeriod/Manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.microsoft.playready": {
|
||||
"url": "https://drm-playready-licensing.axtest.net/AcquireLicense",
|
||||
"licenseHeaders": {
|
||||
"X-AxDRM-Message": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImtleXMiOlt7ImlkIjoiMDg3Mjc4NmUtZjllNy00NjVmLWEzYTItNGU1YjBlZjhmYTQ1IiwiZW5jcnlwdGVkX2tleSI6IlB3NitlRVlOY3ZqWWJmc2gzWDNmbWc9PSJ9LHsiaWQiOiJjMTRmMDcwOS1mMmI5LTQ0MjctOTE2Yi02MWI1MjU4NjUwNmEiLCJlbmNyeXB0ZWRfa2V5IjoiLzErZk5paDM4bXFSdjR5Y1l6bnQvdz09In0seyJpZCI6IjhiMDI5ZTUxLWQ1NmEtNDRiZC05MTBmLWQ0YjVmZDkwZmJhMiIsImVuY3J5cHRlZF9rZXkiOiJrcTBKdVpFanBGTjhzYVRtdDU2ME9nPT0ifSx7ImlkIjoiMmQ2ZTkzODctNjBjYS00MTQ1LWFlYzItYzQwODM3YjRiMDI2IiwiZW5jcnlwdGVkX2tleSI6IlRjUlFlQld4RW9IT0tIcmFkNFNlVlE9PSJ9LHsiaWQiOiJkZTAyZjA3Zi1hMDk4LTRlZTAtYjU1Ni05MDdjMGQxN2ZiYmMiLCJlbmNyeXB0ZWRfa2V5IjoicG9lbmNTN0dnbWVHRmVvSjZQRUFUUT09In0seyJpZCI6IjkxNGU2OWY0LTBhYjMtNDUzNC05ZTlmLTk4NTM2MTVlMjZmNiIsImVuY3J5cHRlZF9rZXkiOiJlaUkvTXNsbHJRNHdDbFJUL0xObUNBPT0ifSx7ImlkIjoiZGE0NDQ1YzItZGI1ZS00OGVmLWIwOTYtM2VmMzQ3YjE2YzdmIiwiZW5jcnlwdGVkX2tleSI6IjJ3K3pkdnFycERWM3hSMGJKeTR1Z3c9PSJ9LHsiaWQiOiIyOWYwNWU4Zi1hMWFlLTQ2ZTQtODBlOS0yMmRjZDQ0Y2Q3YTEiLCJlbmNyeXB0ZWRfa2V5IjoiL3hsU0hweHdxdTNnby9nbHBtU2dhUT09In0seyJpZCI6IjY5ZmU3MDc3LWRhZGQtNGI1NS05NmNkLWMzZWRiMzk5MTg1MyIsImVuY3J5cHRlZF9rZXkiOiJ6dTZpdXpOMnBzaTBaU3hRaUFUa1JRPT0ifV19fQ.BXr93Et1krYMVs-CUnf7F3ywJWFRtxYdkR7Qn4w3-to"
|
||||
}
|
||||
},
|
||||
"com.widevine.alpha": {
|
||||
"url": "https://drm-widevine-licensing.axtest.net/AcquireLicense",
|
||||
"licenseHeaders": {
|
||||
"X-AxDRM-Message": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImtleXMiOlt7ImlkIjoiMDg3Mjc4NmUtZjllNy00NjVmLWEzYTItNGU1YjBlZjhmYTQ1IiwiZW5jcnlwdGVkX2tleSI6IlB3NitlRVlOY3ZqWWJmc2gzWDNmbWc9PSJ9LHsiaWQiOiJjMTRmMDcwOS1mMmI5LTQ0MjctOTE2Yi02MWI1MjU4NjUwNmEiLCJlbmNyeXB0ZWRfa2V5IjoiLzErZk5paDM4bXFSdjR5Y1l6bnQvdz09In0seyJpZCI6IjhiMDI5ZTUxLWQ1NmEtNDRiZC05MTBmLWQ0YjVmZDkwZmJhMiIsImVuY3J5cHRlZF9rZXkiOiJrcTBKdVpFanBGTjhzYVRtdDU2ME9nPT0ifSx7ImlkIjoiMmQ2ZTkzODctNjBjYS00MTQ1LWFlYzItYzQwODM3YjRiMDI2IiwiZW5jcnlwdGVkX2tleSI6IlRjUlFlQld4RW9IT0tIcmFkNFNlVlE9PSJ9LHsiaWQiOiJkZTAyZjA3Zi1hMDk4LTRlZTAtYjU1Ni05MDdjMGQxN2ZiYmMiLCJlbmNyeXB0ZWRfa2V5IjoicG9lbmNTN0dnbWVHRmVvSjZQRUFUUT09In0seyJpZCI6IjkxNGU2OWY0LTBhYjMtNDUzNC05ZTlmLTk4NTM2MTVlMjZmNiIsImVuY3J5cHRlZF9rZXkiOiJlaUkvTXNsbHJRNHdDbFJUL0xObUNBPT0ifSx7ImlkIjoiZGE0NDQ1YzItZGI1ZS00OGVmLWIwOTYtM2VmMzQ3YjE2YzdmIiwiZW5jcnlwdGVkX2tleSI6IjJ3K3pkdnFycERWM3hSMGJKeTR1Z3c9PSJ9LHsiaWQiOiIyOWYwNWU4Zi1hMWFlLTQ2ZTQtODBlOS0yMmRjZDQ0Y2Q3YTEiLCJlbmNyeXB0ZWRfa2V5IjoiL3hsU0hweHdxdTNnby9nbHBtU2dhUT09In0seyJpZCI6IjY5ZmU3MDc3LWRhZGQtNGI1NS05NmNkLWMzZWRiMzk5MTg1MyIsImVuY3J5cHRlZF9rZXkiOiJ6dTZpdXpOMnBzaTBaU3hRaUFUa1JRPT0ifV19fQ.BXr93Et1krYMVs-CUnf7F3ywJWFRtxYdkR7Qn4w3-to"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Axinom Clear - DASH, 4k, HEVC",
|
||||
"uri": "https://media.axprod.net/TestVectors/v7-Clear/Manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Axinom Clear MultiPeriod - DASH, 4k, HEVC",
|
||||
"uri": "https://media.axprod.net/TestVectors/v7-Clear/Manifest_MultiPeriod.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "DASH-IF simulated live",
|
||||
"uri": "https://livesim.dashif.org/livesim/testpic_2s/Manifest.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "Tears of Steal - Widevine (Unified Streaming)",
|
||||
"uri": "https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel-dash-widevine.ism/.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": "https://widevine-proxy.appspot.com/proxy"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Tears of Steal - PlayReady (Unified Streaming)",
|
||||
"uri": "https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel-dash-playready.ism/.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.microsoft.playready": "https://test.playready.microsoft.com/service/rightsmanager.asmx"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Unified Streaming Live DASH",
|
||||
"uri": "https://live.unified-streaming.com/scte35/scte35.isml/.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "Unified Streaming Live HLS",
|
||||
"uri": "https://live.unified-streaming.com/scte35/scte35.isml/.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "DOESN'T WORK - Bayerrischer Rundfunk Recorded Loop - DASH, may not always be available",
|
||||
"uri": "https://irtdashreference-i.akamaihd.net/dash/live/901161/keepixo1/manifestBR2.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "DOESN'T WORK - Bayerrischer Rundfunk Recorded Loop - HLS, may not always be available",
|
||||
"uri": "https://irtdashreference-i.akamaihd.net/dash/live/901161/keepixo1/playlistBR2.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "Big Buck Bunny - Azure - DASH, Widevine, PlayReady",
|
||||
"uri": "https://amssamples.streaming.mediaservices.windows.net/622b189f-ec39-43f2-93a2-201ac4e31ce1/BigBuckBunny.ism/manifest(format=mpd-time-csf)",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": "https://amssamples.keydelivery.mediaservices.windows.net/Widevine/?KID=1ab45440-532c-4399-94dc-5c5ad9584bac",
|
||||
"com.microsoft.playready": "https://amssamples.keydelivery.mediaservices.windows.net/PlayReady/"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Big Buck Bunny Audio only, groups have same uri as renditons",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/audio-only-dupe-groups/prog_index.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Big Buck Bunny Demuxed av, audio only rendition same as group",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/demuxed-ts-with-audio-only-rendition/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "sidx v1 dash",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/sidx-v1-dash/Dog.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "fmp4 x264/flac no manifest codecs",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/fmp4-flac-no-manifest-codecs/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "fmp4 x264/opus no manifest codecs",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/fmp4-opus-no-manifest-codecs/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "fmp4 h264/aac no manifest codecs",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/fmp4-muxed-no-playlist-codecs/index.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "ts one valid codec among many invalid",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/ts-one-valid-many-invalid-codecs/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Legacy AVC Codec",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/legacy-avc-codec/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Pseudo-Live PDT test source",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/pdt-test-source/no-endlist.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": ["live"]
|
||||
},
|
||||
{
|
||||
"name": "PDT test source",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/pdt-test-source/endlist.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "audio only dash, two groups",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/audio-only-dash/dash.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "video only dash, two renditions",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/video-only-dash/dash.mpd",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "encrypted init segment",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/encrypted-init-segment/master.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "Dash data uri for https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd",
|
||||
"uri": "data:application/dash+xml;charset=utf-8,%3CMPD%20mediaPresentationDuration=%22PT634.566S%22%20minBufferTime=%22PT2.00S%22%20profiles=%22urn:hbbtv:dash:profile:isoff-live:2012,urn:mpeg:dash:profile:isoff-live:2011%22%20type=%22static%22%20xmlns=%22urn:mpeg:dash:schema:mpd:2011%22%20xmlns:xsi=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsi:schemaLocation=%22urn:mpeg:DASH:schema:MPD:2011%20DASH-MPD.xsd%22%3E%20%3CBaseURL%3Ehttps://dash.akamaized.net/akamai/bbb_30fps/%3C/BaseURL%3E%20%3CPeriod%3E%20%20%3CAdaptationSet%20mimeType=%22video/mp4%22%20contentType=%22video%22%20subsegmentAlignment=%22true%22%20subsegmentStartsWithSAP=%221%22%20par=%2216:9%22%3E%20%20%20%3CSegmentTemplate%20duration=%22120%22%20timescale=%2230%22%20media=%22$RepresentationID$/$RepresentationID$_$Number$.m4v%22%20startNumber=%221%22%20initialization=%22$RepresentationID$/$RepresentationID$_0.m4v%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_1024x576_2500k%22%20codecs=%22avc1.64001f%22%20bandwidth=%223134488%22%20width=%221024%22%20height=%22576%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_1280x720_4000k%22%20codecs=%22avc1.64001f%22%20bandwidth=%224952892%22%20width=%221280%22%20height=%22720%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_1920x1080_8000k%22%20codecs=%22avc1.640028%22%20bandwidth=%229914554%22%20width=%221920%22%20height=%221080%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_320x180_200k%22%20codecs=%22avc1.64000d%22%20bandwidth=%22254320%22%20width=%22320%22%20height=%22180%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_320x180_400k%22%20codecs=%22avc1.64000d%22%20bandwidth=%22507246%22%20width=%22320%22%20height=%22180%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_480x270_600k%22%20codecs=%22avc1.640015%22%20bandwidth=%22759798%22%20width=%22480%22%20height=%22270%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_640x360_1000k%22%20codecs=%22avc1.64001e%22%20bandwidth=%221254758%22%20width=%22640%22%20height=%22360%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_640x360_800k%22%20codecs=%22avc1.64001e%22%20bandwidth=%221013310%22%20width=%22640%22%20height=%22360%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_768x432_1500k%22%20codecs=%22avc1.64001e%22%20bandwidth=%221883700%22%20width=%22768%22%20height=%22432%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_30fps_3840x2160_12000k%22%20codecs=%22avc1.640033%22%20bandwidth=%2214931538%22%20width=%223840%22%20height=%222160%22%20frameRate=%2230%22%20sar=%221:1%22%20scanType=%22progressive%22/%3E%20%20%3C/AdaptationSet%3E%20%20%3CAdaptationSet%20mimeType=%22audio/mp4%22%20contentType=%22audio%22%20subsegmentAlignment=%22true%22%20subsegmentStartsWithSAP=%221%22%3E%20%20%20%3CAccessibility%20schemeIdUri=%22urn:tva:metadata:cs:AudioPurposeCS:2007%22%20value=%226%22/%3E%20%20%20%3CRole%20schemeIdUri=%22urn:mpeg:dash:role:2011%22%20value=%22main%22/%3E%20%20%20%3CSegmentTemplate%20duration=%22192512%22%20timescale=%2248000%22%20media=%22$RepresentationID$/$RepresentationID$_$Number$.m4a%22%20startNumber=%221%22%20initialization=%22$RepresentationID$/$RepresentationID$_0.m4a%22/%3E%20%20%20%3CRepresentation%20id=%22bbb_a64k%22%20codecs=%22mp4a.40.5%22%20bandwidth=%2267071%22%20audioSamplingRate=%2248000%22%3E%20%20%20%20%3CAudioChannelConfiguration%20schemeIdUri=%22urn:mpeg:dash:23003:3:audio_channel_configuration:2011%22%20value=%222%22/%3E%20%20%20%3C/Representation%3E%20%20%3C/AdaptationSet%3E%20%3C/Period%3E%3C/MPD%3E",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "HLS data uri for https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8",
|
||||
"uri": "data:application/x-mpegurl;charset=utf-8,%23EXTM3U%0D%0A%0D%0A%23EXT-X-MEDIA%3ATYPE%3DAUDIO%2CGROUP-ID%3D%22bipbop_audio%22%2CLANGUAGE%3D%22eng%22%2CNAME%3D%22BipBop%20Audio%201%22%2CAUTOSELECT%3DYES%2CDEFAULT%3DYES%0D%0A%23EXT-X-MEDIA%3ATYPE%3DAUDIO%2CGROUP-ID%3D%22bipbop_audio%22%2CLANGUAGE%3D%22eng%22%2CNAME%3D%22BipBop%20Audio%202%22%2CAUTOSELECT%3DNO%2CDEFAULT%3DNO%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Falternate_audio_aac_sinewave%2Fprog_index.m3u8%22%0D%0A%0D%0A%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22English%22%2CDEFAULT%3DYES%2CAUTOSELECT%3DYES%2CFORCED%3DNO%2CLANGUAGE%3D%22en%22%2CCHARACTERISTICS%3D%22public.accessibility.transcribes-spoken-dialog%2C%20public.accessibility.describes-music-and-sound%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Feng%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22English%20%28Forced%29%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DNO%2CFORCED%3DYES%2CLANGUAGE%3D%22en%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Feng_forced%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22Fran%C3%83%C2%A7ais%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DYES%2CFORCED%3DNO%2CLANGUAGE%3D%22fr%22%2CCHARACTERISTICS%3D%22public.accessibility.transcribes-spoken-dialog%2C%20public.accessibility.describes-music-and-sound%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Ffra%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22Fran%C3%83%C2%A7ais%20%28Forced%29%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DNO%2CFORCED%3DYES%2CLANGUAGE%3D%22fr%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Ffra_forced%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22Espa%C3%83%C2%B1ol%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DYES%2CFORCED%3DNO%2CLANGUAGE%3D%22es%22%2CCHARACTERISTICS%3D%22public.accessibility.transcribes-spoken-dialog%2C%20public.accessibility.describes-music-and-sound%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Fspa%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22Espa%C3%83%C2%B1ol%20%28Forced%29%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DNO%2CFORCED%3DYES%2CLANGUAGE%3D%22es%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Fspa_forced%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22%C3%A6%C2%97%C2%A5%C3%A6%C2%9C%C2%AC%C3%A8%C2%AA%C2%9E%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DYES%2CFORCED%3DNO%2CLANGUAGE%3D%22ja%22%2CCHARACTERISTICS%3D%22public.accessibility.transcribes-spoken-dialog%2C%20public.accessibility.describes-music-and-sound%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Fjpn%2Fprog_index.m3u8%22%0D%0A%23EXT-X-MEDIA%3ATYPE%3DSUBTITLES%2CGROUP-ID%3D%22subs%22%2CNAME%3D%22%C3%A6%C2%97%C2%A5%C3%A6%C2%9C%C2%AC%C3%A8%C2%AA%C2%9E%20%28Forced%29%22%2CDEFAULT%3DNO%2CAUTOSELECT%3DNO%2CFORCED%3DYES%2CLANGUAGE%3D%22ja%22%2CURI%3D%22https%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fsubtitles%2Fjpn_forced%2Fprog_index.m3u8%22%0D%0A%0D%0A%0D%0A%23EXT-X-STREAM-INF%3ABANDWIDTH%3D263851%2CCODECS%3D%22mp4a.40.2%2C%20avc1.4d400d%22%2CRESOLUTION%3D416x234%2CAUDIO%3D%22bipbop_audio%22%2CSUBTITLES%3D%22subs%22%0D%0Ahttps%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fgear1%2Fprog_index.m3u8%0D%0A%0D%0A%23EXT-X-STREAM-INF%3ABANDWIDTH%3D577610%2CCODECS%3D%22mp4a.40.2%2C%20avc1.4d401e%22%2CRESOLUTION%3D640x360%2CAUDIO%3D%22bipbop_audio%22%2CSUBTITLES%3D%22subs%22%0D%0Ahttps%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fgear2%2Fprog_index.m3u8%0D%0A%0D%0A%23EXT-X-STREAM-INF%3ABANDWIDTH%3D915905%2CCODECS%3D%22mp4a.40.2%2C%20avc1.4d401f%22%2CRESOLUTION%3D960x540%2CAUDIO%3D%22bipbop_audio%22%2CSUBTITLES%3D%22subs%22%0D%0Ahttps%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fgear3%2Fprog_index.m3u8%0D%0A%0D%0A%23EXT-X-STREAM-INF%3ABANDWIDTH%3D1030138%2CCODECS%3D%22mp4a.40.2%2C%20avc1.4d401f%22%2CRESOLUTION%3D1280x720%2CAUDIO%3D%22bipbop_audio%22%2CSUBTITLES%3D%22subs%22%0D%0Ahttps%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fgear4%2Fprog_index.m3u8%0D%0A%0D%0A%23EXT-X-STREAM-INF%3ABANDWIDTH%3D1924009%2CCODECS%3D%22mp4a.40.2%2C%20avc1.4d401f%22%2CRESOLUTION%3D1920x1080%2CAUDIO%3D%22bipbop_audio%22%2CSUBTITLES%3D%22subs%22%0D%0Ahttps%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fgear5%2Fprog_index.m3u8%0D%0A%0D%0A%23EXT-X-STREAM-INF%3ABANDWIDTH%3D41457%2CCODECS%3D%22mp4a.40.2%22%2CAUDIO%3D%22bipbop_audio%22%2CSUBTITLES%3D%22subs%22%0D%0Ahttps%3A%2F%2Fd2zihajmogu5jn.cloudfront.net%2Fbipbop-advanced%2Fgear0%2Fprog_index.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "audio only ts with program Map table every other segment",
|
||||
"uri": "https://d2zihajmogu5jn.cloudfront.net/first-pmt-only/index.m3u8",
|
||||
"mimetype": "application/x-mpegurl",
|
||||
"features": []
|
||||
},
|
||||
{
|
||||
"name": "HDCP v1.0 DRM dash",
|
||||
"uri": "https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears.mpd#1",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": {
|
||||
"url": "https://proxy.uat.widevine.com/proxy?video_id=GTS_SW_SECURE_CRYPTO_HDCP_V1&provider=widevine_test"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HDCP v2.0 DRM dash",
|
||||
"uri": "https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears.mpd#2",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": {
|
||||
"url": "https://proxy.uat.widevine.com/proxy?video_id=GTS_SW_SECURE_CRYPTO_HDCP_V2&provider=widevine_test"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HDCP v2.1 DRM dash",
|
||||
"uri": "https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears.mpd@21",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": {
|
||||
"url": "https://proxy.uat.widevine.com/proxy?video_id=GTS_SW_SECURE_CRYPTO_HDCP_V2_1&provider=widevine_test"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HDCP v2.2 DRM dash",
|
||||
"uri": "https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears.mpd#22",
|
||||
"mimetype": "application/dash+xml",
|
||||
"features": [],
|
||||
"keySystems": {
|
||||
"com.widevine.alpha": {
|
||||
"url": "https://proxy.uat.widevine.com/proxy?video_id=GTS_SW_SECURE_CRYPTO_HDCP_V2_2&provider=widevine_test"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user