Skip to content

Commit

Permalink
release 1.15.11
Browse files Browse the repository at this point in the history
  • Loading branch information
snowinszu committed Jun 30, 2021
1 parent b46c3ab commit 2ec8cfa
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
34 changes: 34 additions & 0 deletions demo/artplayer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>ArtPlayer</title>
<meta charset="UTF-8" />
</head>
<body>
<div class="artplayer-app" style="width:400px;height:300px"></div>
<script src="//cdn.jsdelivr.net/npm/cdnbye@latest"></script>
<script src="//cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
<script>
var art = new Artplayer({
container: '.artplayer-app',
url: 'https://wowza.peer5.com/live/smil:bbb_abr.smil/chunklist_b591000.m3u8',
customType: {
m3u8: function (video, url) {
var hls = new Hls({
p2pConfig: {
logLevel: false,
live: false,
getStats: function (totalP2PDownloaded, totalP2PUploaded, totalHTTPDownloaded) {
console.log(`totalP2PDownloaded ${totalP2PDownloaded} totalP2PUploaded ${totalP2PUploaded} totalHTTPDownloaded ${totalHTTPDownloaded}`)
},
// Other p2pConfig options provided by CDNBye
}
});
hls.loadSource(url);
hls.attachMedia(video);
},
},
});
</script>
</body>
</html>
9 changes: 5 additions & 4 deletions demo/jwplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

<!-- CDNBye Plugin -->
<script src="//cdn.jsdelivr.net/npm/cdnbye@latest"></script>
<script src="//cdn.jsdelivr.net/gh/teranode/jw-provider@latest/provider.hlsjs.js"></script>
<!--<script src="../dist/hls.min.js"></script>-->
<!--<script src="//cdn.jsdelivr.net/gh/teranode/jw-provider@latest/provider.hlsjs.js"></script>-->
<!-- JW Player Builds -->
<script src="//ssl.p.jwpcdn.com/player/v/8.20.0/jwplayer.js"></script>
<script src="//ssl.p.jwpcdn.com/player/v/8.20.2/jwplayer.js"></script>
<!-- JWPlayer Hlsjs Provider -->
<!--<script src="//cdn.jsdelivr.net/npm/cdnbye@latest/dist/jwplayer.hlsjs.provider.min.js"></script>-->
<script src="//cdn.jsdelivr.net/npm/cdnbye@latest/dist/jwplayer.hlsjs.provider.min.js"></script>

</head>

Expand All @@ -29,7 +30,7 @@
height: 288,
autostart: true,
hlsjsConfig: {
debug: true,
// debug: true,
// Other hlsjsConfig options provided by hls.js
p2pConfig: {
logLevel: true,
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.15.0",
"version": "1.15.11",
"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.15.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.15.11' && 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 2ec8cfa

Please sign in to comment.