Skip to content

Commit

Permalink
release 1.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snowinszu committed Apr 20, 2021
1 parent 9007a93 commit 8c400f7
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion demo/chimee.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>download info:</h3>
liveSyncDuration: 30, // Highly recommended setting
p2pConfig: {
logLevel: 'debug',
live: false, // set to true in live mode
live: true, // set to false in VOD mode
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
document.querySelector('#info').innerText = `p2p ratio: ${Math.round(totalP2PDownloaded/total*100)}%, saved traffic: ${totalP2PDownloaded}KB, uploaded: ${totalP2PUploaded}KB`;
Expand Down
2 changes: 1 addition & 1 deletion demo/chplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: false,
live: false,
live: true, // set to false in VOD mode
// Other p2pConfig options provided by CDNBye
// https://github.com/cdnbye/hlsjs-p2p-engine/blob/master/docs/%E4%B8%AD%E6%96%87/API.md
}
Expand Down
2 changes: 1 addition & 1 deletion demo/ckplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>download info:</h3>
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: 'debug',
live: false, // set to true in live mode
live: true, // set to false in VOD mode
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
document.querySelector('#info').innerText = `p2p ratio: ${Math.round(totalP2PDownloaded/total*100)}%, saved traffic: ${totalP2PDownloaded}KB, uploaded: ${totalP2PUploaded}KB`;
Expand Down
8 changes: 4 additions & 4 deletions demo/clappr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>CDNBye Clappr Demo</title>
<!-- Clappr Builds -->
<script src="//cdn.jsdelivr.net/npm/@clappr/[email protected]/dist/clappr.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/clappr/clappr-level-selector-plugin@latest/dist/level-selector.min.js"></script>
<!-- CDNBye P2PEngine -->
<script src="//cdn.jsdelivr.net/npm/cdnbye@latest/dist/hlsjs-p2p-engine.min.js"></script>
<!-- CDNBye Clappr Plugin -->
Expand All @@ -17,11 +18,10 @@ <h3>download info:</h3>
<script>
var player = new Clappr.Player(
{
// source: "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
source: "https://wowza.peer5.com/live/smil:bbb_abr.smil/chunklist_b591000.m3u8",
source: "https://wowza.peer5.com/live/smil:bbb_abr.smil/playlist.m3u8",
parentId: "#player",
autoPlay: true,
plugins: [CDNByeClapprPlugin],
plugins: [LevelSelector,CDNByeClapprPlugin],
playback: {
hlsjsConfig: {
maxBufferSize: 0, // Highly recommended setting in live mode
Expand All @@ -30,7 +30,7 @@ <h3>download info:</h3>
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: 'debug',
live: false, // set to true in live mode
live: true, // set to false in VOD mode
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
document.querySelector('#info').innerText = `p2p ratio: ${Math.round(totalP2PDownloaded/total*100)}%, saved traffic: ${totalP2PDownloaded}KB, uploaded: ${totalP2PUploaded}KB`;
Expand Down
2 changes: 1 addition & 1 deletion demo/dplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
debug: false,
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
live: false, // 如果是直播设为true
live: true, // set to false in VOD mode
// Other p2pConfig options provided by CDNBye
}
});
Expand Down
2 changes: 1 addition & 1 deletion demo/flowplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h3>download info:</h3>
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
wsSignalerAddr: 'wss://signal.hdtvcloud.com',
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
Expand Down
2 changes: 1 addition & 1 deletion demo/fluidplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3>download info:</h3>
configureHls: (options) => {
options.p2pConfig = {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
wsSignalerAddr: 'wss://signal.hdtvcloud.com',
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
Expand Down
2 changes: 1 addition & 1 deletion demo/jwplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
// Other p2pConfig options provided by CDNBye
}
},
Expand Down
2 changes: 1 addition & 1 deletion demo/mediaelement.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3>download info:</h3>
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
wsSignalerAddr: 'wss://signal.hdtvcloud.com',
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
Expand Down
2 changes: 1 addition & 1 deletion demo/openplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h3>download info:</h3>
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: 'debug',
live: false, // set to true in live mode
live: true, // set to false in VOD mode
wsSignalerAddr: 'wss://signal.hdtvcloud.com',
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
Expand Down
2 changes: 1 addition & 1 deletion demo/playerjs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
hlsconfig: {
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion demo/plyr.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h3>download info:</h3>
var hls = new Hls({
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
wsSignalerAddr: 'wss://signal.hdtvcloud.com',
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
Expand Down
2 changes: 1 addition & 1 deletion demo/quick-start.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h3>download info:</h3>
var hls = new Hls({
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
// Other p2pConfig options provided by CDNBye
}
});
Expand Down
2 changes: 1 addition & 1 deletion demo/standalone.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3>download info:</h3>
if (P2PEngine.isSupported()) {
var engine = new P2PEngine(hls, {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
// Other p2pConfig options provided by CDNBye
});
engine.on('stats', function ({totalHTTPDownloaded=0, totalP2PDownloaded=0, totalP2PUploaded=0}) {
Expand Down
2 changes: 1 addition & 1 deletion demo/tcplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3>download info:</h3>
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
var total = totalHTTPDownloaded + totalP2PDownloaded;
document.querySelector('#info').innerText = `p2p ratio: ${Math.round(totalP2PDownloaded/total*100)}%, saved traffic: ${totalP2PDownloaded}KB, uploaded: ${totalP2PUploaded}KB`;
Expand Down
4 changes: 2 additions & 2 deletions demo/videojs.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ <h3>download info:</h3>
hlsjsConfig: {
// Put your hls.js config here
// debug: true,
maxBufferLength: 40,
liveSyncDurationCount: 15,
maxBufferLength: 10,
liveSyncDurationCount: 10,
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion demo/xgplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: true,
live: false, // set to true in live mode
live: true, // set to false in VOD mode
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
console.log(`totalP2PDownloaded ${totalP2PDownloaded} totalP2PUploaded ${totalP2PUploaded} totalHTTPDownloaded ${totalHTTPDownloaded}`)
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "cdnbye",
"version": "1.13.0",
"version": "1.14.0",
"description": "Let your viewers become your unlimitedly scalable CDN.",
"main": "./dist/hls.min.js",
"scripts": {
"git-push": "git add demo && git add package.json && git add README.md && git add Readme_zh.md && git commit -m 'release 1.13.0' && git push origin master",
"git-push": "git add demo && git add package.json && git add README.md && git add Readme_zh.md && git commit -m 'release 1.14.0' && git push origin master",
"git-pull": "git pull origin master",
"publish": "npm publish",
"test": "webpack --progress --env.test-bundle"
Expand Down

0 comments on commit 8c400f7

Please sign in to comment.