1
0
mirror of https://github.com/videojs/video.js.git synced 2025-04-11 11:42:08 +02:00

ignore: update @videojs/http-streaming to 3.0 release candidate (#7884)

Co-authored-by: Sarah Rimron-Soutter <sarah@teaandbiscuits.net>
This commit is contained in:
Pat O'Neill 2022-10-03 17:34:39 -04:00
parent 1299daf16c
commit 91f4663ea5
3 changed files with 789 additions and 947 deletions

1613
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 video player that supports HLS and DASH with a common API and skin.",
"version": "7.21.1",
"version": "8.0.0-1",
"main": "./dist/video.cjs.js",
"module": "./dist/video.es.js",
"style": "./dist/video-js.css",
@ -84,15 +84,15 @@
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@videojs/http-streaming": "2.15.1",
"@videojs/vhs-utils": "^3.0.4",
"@videojs/http-streaming": "^3.0.0-2",
"@videojs/vhs-utils": "^4.0.0",
"@videojs/xhr": "2.6.0",
"aes-decrypter": "3.1.3",
"aes-decrypter": "4.0.1",
"global": "^4.4.0",
"keycode": "^2.2.0",
"m3u8-parser": "4.8.0",
"mpd-parser": "0.22.1",
"mux.js": "6.0.1",
"m3u8-parser": "^6.0.0",
"mpd-parser": "1.0.0",
"mux.js": "6.2.0",
"safe-json-parse": "4.0.0",
"videojs-font": "3.2.0",
"videojs-vtt.js": "^0.15.4"
@ -115,12 +115,12 @@
"es5-shim": "^4.5.15",
"es6-shim": "^0.35.6",
"filesize": "^4.1.2",
"gh-release": "^3.5.0",
"gh-release": "^6.0.4",
"humanize-duration": "^3.26.0",
"husky": "^1.3.1",
"is-ci": "^3.0.0",
"jsdoc": "^3.6.6",
"karma": "^6.3.2",
"jsdoc": "^3.6.11",
"karma": "^6.4.0",
"lint-staged": "^10.5.4",
"markdown-table": "^1.1.3",
"maxmin": "^2.1.0",
@ -130,9 +130,9 @@
"postcss": "^8.2.13",
"postcss-cli": "^8.3.1",
"qunit": "2.13.0",
"remark-cli": "^6.0.1",
"remark-lint": "^6.0.4",
"remark-parse": "^6.0.3",
"remark-cli": "^11.0.0",
"remark-lint": "^9.1.1",
"remark-parse": "^10.0.1",
"remark-stringify": "^6.0.4",
"remark-toc": "^5.1.1",
"remark-validate-links": "^8.0.2",
@ -151,7 +151,7 @@
"rollup-plugin-stub": "^1.2.0",
"sass": "^1.34.0",
"semver": "^5.7.0",
"shelljs": "^0.8.3",
"shelljs": "^0.8.5",
"shx": "^0.3.2",
"sinon": "^11.1.1",
"tui-jsdoc-template": "^1.2.2",
@ -159,7 +159,7 @@
"unified": "^7.0.2",
"videojs-generate-karma-config": "^8.0.1",
"videojs-languages": "^2.0.0",
"videojs-standard": "^8.0.3",
"videojs-standard": "^9.0.1",
"webpack": "^1.15.0"
},
"vjsstandard": {

View File

@ -3,29 +3,106 @@
<head>
<meta charset="utf-8" />
<title>Video.js Sandbox</title>
<style type="text/css">
#intro {
width: 938px;
background-color: #eee;
border: 1px solid #777;
padding: 0 10px;
margin-bottom: 20px;
line-height: 1.5em;
}
#source-form {
width: 938px;
padding: 10px 10px 0;
border: 1px solid #777;
margin: 0 0 20px;
}
#source-form > div {
margin: 0 0 12px;
overflow: hidden;
}
#source-form label {
float: left;
width: 200px;
}
#source-form input[type="text"],
#source-form select {
float: left;
}
#source-form input[type="text"] {
width: 700px;
}
</style>
<link href="../dist/video-js.css" rel="stylesheet" type="text/css">
<script src="../dist/alt/video.debug.js"></script>
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
<div id="intro">
<p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the repo, except files that end in .example (so don't edit or add those files). To get started run `npm start` and open the index.html</p>
<pre>npm start</pre>
<pre>open http://localhost:9999/sandbox/debug.html</pre>
</div>
<form id="source-form">
<div>
<label for="source">Set Media Source URL</label>
<input type="text" id="source" value="https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8">
</div>
<div>
<label for="source-type">Set Media Source Type</label>
<select id="source-type">
<option value="">None</option>
<option value="video/mp4">MP4 (video/mp4)</option>
<option selected value="application/x-mpegurl">HLS (application/x-mpegurl)</option>
<option value="application/dash+xml">DASH (application/dash+xml)</option>
</select>
</div>
<div>
<button type="submit">Set</button>
</div>
</form>
<video-js
id="vid1"
id="debug"
controls
preload="auto"
width="640"
height="264">
<source src="https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8" type="application/x-mpegURL">
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
width="960"
height="396">
</video-js>
<script>
var vid = document.getElementById('vid1');
var player = videojs(vid);
const vid = document.getElementById('debug');
const player = videojs(vid);
const form = document.getElementById('source-form');
const sourceField = document.getElementById('source');
const sourceTypeField = document.getElementById('source-type');
const setSource = () => {
const source = {
src: sourceField.value,
type: sourceTypeField.value
};
if (!source.type) {
delete source.type;
}
player.log('setting source', source);
player.src(source);
};
form.addEventListener('submit', (e) => {
e.preventDefault();
setSource();
});
setSource();
</script>
</body>