Skip to content

Commit

Permalink
release v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
snowinszu committed Jul 14, 2024
1 parent 20985a5 commit 3e90502
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 32 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<h1 align="center"><a href="" target="_blank" rel="noopener noreferrer"><img width="250" src="https://www.swarmcloud.net/img/logo.png" alt="cdnbye logo"></a></h1>
<h4 align="center">Let your viewers become your unlimitedly scalable CDN.</h4>
<p align="center">
<a href="https://www.npmjs.com/package/cdnbye-dash"><img src="https://img.shields.io/npm/v/cdnbye-dash.svg?style=flat" alt="npm"></a>
<a href="https://www.jsdelivr.com/package/npm/cdnbye-dash"><img src="https://data.jsdelivr.com/v1/package/npm/cdnbye-dash/badge" alt="jsdelivr"></a>
<a href="https://www.npmjs.com/package/@swarmcloud/dashjs"><img src="https://img.shields.io/npm/v/@swarmcloud/dashjs.svg?style=flat" alt="npm"></a>
<a href="https://www.jsdelivr.com/package/npm/@swarmcloud/dashjs"><img src="https://data.jsdelivr.com/v1/package/npm/@swarmcloud/dashjs/badge" alt="jsdelivr"></a>
</p>


Expand Down Expand Up @@ -35,7 +35,7 @@ CDNBye | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ❌ | ✔ |
## Include
Include the pre-built script of latest version:
```html
<script src="https://cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
```

## API and Configuration
Expand Down
6 changes: 3 additions & 3 deletions Readme_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<h4 align="center">Save Your Bandwidth using WebRTC.</h4>
<h4 align="center">视频网站省流量&加速插件.</h4>
<p align="center">
<a href="https://www.npmjs.com/package/cdnbye-dash"><img src="https://img.shields.io/npm/v/cdnbye-dash.svg?style=flat" alt="npm"></a>
<a href="https://www.jsdelivr.com/package/npm/cdnbye-dash"><img src="https://data.jsdelivr.com/v1/package/npm/cdnbye-dash/badge" alt="jsdelivr"></a>
<a href="https://www.npmjs.com/package/@swarmcloud/dashjs"><img src="https://img.shields.io/npm/v/@swarmcloud/dashjs.svg?style=flat" alt="npm"></a>
<a href="https://www.jsdelivr.com/package/npm/@swarmcloud/dashjs"><img src="https://data.jsdelivr.com/v1/package/npm/@swarmcloud/dashjs/badge" alt="jsdelivr"></a>
</p>

P2P技术使观看相同内容的用户之间可以相互分享数据,不仅能效降低视频/直播网站的带宽成本,还可以提升用户的播放体验,降低卡顿、二次缓存的发生率。
Expand Down Expand Up @@ -35,7 +35,7 @@ CDNBye | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ❌ | ✔ |
## 集成
通过script标签引入最新版本:
```html
<script src="https://cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
```

## API文档
Expand Down
2 changes: 1 addition & 1 deletion demo/dplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="dplayer"></div>
<div id="stats"></div>
<script src="https://cdn.dashjs.org/v4.7.3/dash.all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
<script src="https://cdn.jsdelivr.net/npm/dplayer@1.26.0"></script>
<script>
var _peerId = '', _peerNum = 0, _totalP2PDownloaded = 0, _totalP2PUploaded = 0;
Expand Down
2 changes: 1 addition & 1 deletion demo/flowplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- skin -->
<link rel="stylesheet" href="//cdn.flowplayer.com/releases/native/stable/style/flowplayer.css">
<!-- CDNBye plugin -->
<script src="//cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="//cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
<!-- flowplayer -->
<script src="//cdn.flowplayer.com/releases/native/stable/flowplayer.min.js"></script>
<script src="//cdn.flowplayer.com/releases/native/stable/plugins/dash.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion demo/plyr.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3>download info:</h3>
<link rel="stylesheet" href="//cdn.plyr.io/3.7.8/plyr.css">
<script src="//cdn.plyr.io/3.7.8/plyr.js"></script>
<script src="https://cdn.dashjs.org/v4.7.3/dash.all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
<style>
.container {
margin: 50px auto;
Expand Down
2 changes: 1 addition & 1 deletion demo/quick-start.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h3>download info:</h3>
<p id="peers"></p>
<p id="info"></p>
<script src="https://cdn.dashjs.org/v4.7.3/dash.all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
<script>
var url = "https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd";
var player = dashjs.MediaPlayer().create()
Expand Down
2 changes: 1 addition & 1 deletion demo/videojs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Dash.js -->
<script src="//cdn.dashjs.org/v4.7.3/dash.all.min.js"></script>
<!-- cdnbye dash.js plugin script -->
<script src="//cdn.jsdelivr.net/npm/cdnbye-dash@latest"></script>
<script src="//cdn.jsdelivr.net/npm/@swarmcloud/dashjs"></script>
<script src="//cdn.jsdelivr.net/npm/videojs-contrib-dash@5.1.1/dist/videojs-dash.min.js"></script>
<!--<script src="../dist/dashjs-p2p-engine.min.js"></script>-->

Expand Down
23 changes: 2 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "cdnbye-dash",
"version": "0.7.1",
"version": "0.7.3",
"description": "Let your viewers become your unlimitedly scalable CDN.",
"main": "./dist/dashjs-p2p-engine.min.js",
"types": "./dist/dashjs-p2p-engine.min.d.ts",
"files": [
"dist"
],
"scripts": {
"git-push": "git add demo && git add package.json && git add README.md && git add Readme_zh.md && git commit -m 'release v0.7.1' && 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 v0.7.3' && git push origin master",
"git-pull": "git pull origin master",
"publish": "npm publish",
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -17,25 +17,6 @@
"type": "git",
"url": "https://gitee.com/cdnbye_dev/dashjs-p2p-engine"
},
"dependencies": {
"dashjs": "^3.0.2",
"get-browser-rtc": "^1.0.2",
"reconnecting-websocket": "^3.2.2",
"url-toolkit": "^2.1.6"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babili-webpack-plugin": "^0.1.2",
"mocha": "^4.1.0",
"node-static": "^0.7.10",
"webpack": "^3.10.0",
"websocket": "^1.0.25"
},
"author": "cdnbye",
"license": "ISC",
"keywords": [
Expand Down

0 comments on commit 3e90502

Please sign in to comment.