mirror of
https://github.com/hevin-lee/EasyPlayerJs.git
synced 2026-06-15 06:10:01 +00:00
Updated Version 4.1.0
This commit is contained in:
20
EasyPlayer-element.min.js
vendored
20
EasyPlayer-element.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
EasyPlayer.swf
BIN
EasyPlayer.swf
Binary file not shown.
BIN
EasyPlayer.wasm
Normal file
BIN
EasyPlayer.wasm
Normal file
Binary file not shown.
20
README.md
20
README.md
@@ -1,7 +1,8 @@
|
|||||||
# EasyPlayer.js
|
# EasyPlayer.js
|
||||||
|
|
||||||
## 简介
|
## 简介
|
||||||
EasyPlayer.js H5播放器,是一款能够同时支持HTTP、HTTP-FLV、HLS(m3u8)、WS视频直播与视频点播等多种协议,支持H.264、H.265、AAC等多种音视频编码格式,支持mse、wasm等多种解码方式,支持Windows、Linux、Android、iOS全平台终端的H5播放器,使用简单, 功能强大。
|
|
||||||
|
集播放http-flv, hls, websocket 于一身的H5`视频直播/视频点播`播放器, 使用简单, 功能强大;
|
||||||
|
|
||||||
## 功能说明
|
## 功能说明
|
||||||
|
|
||||||
@@ -11,10 +12,6 @@ EasyPlayer.js H5播放器,是一款能够同时支持HTTP、HTTP-FLV、HLS(m
|
|||||||
|
|
||||||
- [x] 支持 HTTP-FLV/WS-FLV 播放;
|
- [x] 支持 HTTP-FLV/WS-FLV 播放;
|
||||||
|
|
||||||
- [x] 支持 H265编码视频;
|
|
||||||
|
|
||||||
- [x] 支持 RTMP 播放;
|
|
||||||
|
|
||||||
- [x] 支持直播和点播播放;
|
- [x] 支持直播和点播播放;
|
||||||
|
|
||||||
- [x] 支持播放器快照截图;
|
- [x] 支持播放器快照截图;
|
||||||
@@ -150,7 +147,7 @@ components: { EasyPlayer }
|
|||||||
| ------------------ | ------------------------------------------------ | -------------------------- | ------ |
|
| ------------------ | ------------------------------------------------ | -------------------------- | ------ |
|
||||||
| video-url | 视频地址 | String | - |
|
| video-url | 视频地址 | String | - |
|
||||||
| video-title | 视频右上角显示的标题 | String | - |
|
| video-title | 视频右上角显示的标题 | String | - |
|
||||||
| poster | 视频封面图片 | String | - |
|
| snap-url | 视频封面图片 | String | - |
|
||||||
| auto-play | 自动播放 | Boolean | true |
|
| auto-play | 自动播放 | Boolean | true |
|
||||||
| live | 是否直播, 标识要不要显示进度条 | Boolean | true |
|
| live | 是否直播, 标识要不要显示进度条 | Boolean | true |
|
||||||
| speed | 是否显示倍速播放按钮。注意:当live为true时,此属性不生效 |Boolean | true |
|
| speed | 是否显示倍速播放按钮。注意:当live为true时,此属性不生效 |Boolean | true |
|
||||||
@@ -167,7 +164,6 @@ components: { EasyPlayer }
|
|||||||
| isresolution | 是否在播放 m3u8 时显示多清晰度选择 | Boolean | false |
|
| isresolution | 是否在播放 m3u8 时显示多清晰度选择 | Boolean | false |
|
||||||
| isresolution | 供选择的清晰度 "yh,fhd,hd,sd", yh:原始分辨率 | fhd:超清,hd:高清,sd:标清 | - |
|
| isresolution | 供选择的清晰度 "yh,fhd,hd,sd", yh:原始分辨率 | fhd:超清,hd:高清,sd:标清 | - |
|
||||||
| resolutiondefault | 默认播放的清晰度 | String | hd |
|
| resolutiondefault | 默认播放的清晰度 | String | hd |
|
||||||
| decodeWasm | 强制H265解码(支持:HLS/FLV/WS) | Boolean | false |
|
|
||||||
|
|
||||||
### HTTP-FLV 播放相关属性
|
### HTTP-FLV 播放相关属性
|
||||||
#### 注意:此属性只在播放flv格式的流时生效。
|
#### 注意:此属性只在播放flv格式的流时生效。
|
||||||
@@ -176,7 +172,7 @@ components: { EasyPlayer }
|
|||||||
| hasaudio | 是否有音频,传递该属性可以加快启播速度 | Boolean | 默认不配置自动判断 |
|
| hasaudio | 是否有音频,传递该属性可以加快启播速度 | Boolean | 默认不配置自动判断 |
|
||||||
| hasvideo | 是否有视频,传递该属性可以加快启播速度 | Boolean | 默认不配置自动判断 |
|
| hasvideo | 是否有视频,传递该属性可以加快启播速度 | Boolean | 默认不配置自动判断 |
|
||||||
|
|
||||||
## 事件方法
|
## 事件回调
|
||||||
|
|
||||||
| 方法名 | 说明 | 参数 |
|
| 方法名 | 说明 | 参数 |
|
||||||
| ---------- | ------------ | --------------------- |
|
| ---------- | ------------ | --------------------- |
|
||||||
@@ -185,8 +181,6 @@ components: { EasyPlayer }
|
|||||||
| timeupdate | 进度更新 | 当前时间进度 |
|
| timeupdate | 进度更新 | 当前时间进度 |
|
||||||
| pause | 暂停 | 当前时间进度 |
|
| pause | 暂停 | 当前时间进度 |
|
||||||
| play | 播放 | 当前时间进度 |
|
| play | 播放 | 当前时间进度 |
|
||||||
| update:loading | 加载状态回调 |- |
|
|
||||||
| message | 播放器回调信息 |- |
|
|
||||||
|
|
||||||
|
|
||||||
## 更多流媒体音视频资源
|
## 更多流媒体音视频资源
|
||||||
@@ -197,13 +191,13 @@ EasyDSS高性能互联网直播服务:<a href="http://www.easydss.com" target=
|
|||||||
|
|
||||||
EasyNVR安防视频可视化服务:<a href="http://www.easynvr.com" target="_blank" title="EasyNVR安防视频可视化服务">www.EasyNVR.com</a>
|
EasyNVR安防视频可视化服务:<a href="http://www.easynvr.com" target="_blank" title="EasyNVR安防视频可视化服务">www.EasyNVR.com</a>
|
||||||
|
|
||||||
EasyNVS视频综合管理平台:<a href="http://nvs.easynvr.com:10810/" target="_blank" title="EasyNVS视频综合管理平台">www.EasyNVS.com</a>
|
EasyNVS视频综合管理平台:<a href="http://www.easynvs.com" target="_blank" title="EasyNVS视频综合管理平台">www.EasyNVS.com</a>
|
||||||
|
|
||||||
EasyNTS上云网关<a href="http://www.tsingsee.com/product/easynts/" target="_blank" title="EasyNTS上云网关">www.EasyNTS.com</a>
|
EasyNTS云组网:<a href="http://www.easynts.com" target="_blank" title="EasyNTS云组网">www.EasyNTS.com</a>
|
||||||
|
|
||||||
EasyGBS国标GB/T28181服务器:<a href="http://www.easygbs.com" target="_blank" title="EasyGBS国标GB/T28181视频服务器">www.EasyGBS.com</a>
|
EasyGBS国标GB/T28181服务器:<a href="http://www.easygbs.com" target="_blank" title="EasyGBS国标GB/T28181视频服务器">www.EasyGBS.com</a>
|
||||||
|
|
||||||
EasyRTC视频会议云服务:<a href="http://www.tsingsee.com/product/easyrtc/" target="_blank" title="EasyRTC视频会议云服务:">www.EasyRTC.com</a>
|
EasyRTS应急指挥平台:<a href="http://www.easyrts.com" target="_blank" title="EasyRTS应急指挥平台">www.EasyRTS.com</a>
|
||||||
|
|
||||||
TSINGSEE青犀开放平台:<a href="http://open.tsingsee.com" target="_blank" title="TSINGSEE青犀开放平台">open.TSINGSEE.com</a>
|
TSINGSEE青犀开放平台:<a href="http://open.tsingsee.com" target="_blank" title="TSINGSEE青犀开放平台">open.TSINGSEE.com</a>
|
||||||
|
|
||||||
|
|||||||
20
demo/html/EasyPlayer-element.min.js
vendored
20
demo/html/EasyPlayer-element.min.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
BIN
demo/html/EasyPlayer.wasm
Normal file
BIN
demo/html/EasyPlayer.wasm
Normal file
Binary file not shown.
@@ -8,7 +8,11 @@
|
|||||||
<script src="./jquery.min.js"></script>
|
<script src="./jquery.min.js"></script>
|
||||||
<script src="./EasyPlayer-element.min.js"></script>
|
<script src="./EasyPlayer-element.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
<style>
|
||||||
|
#player .easy-player {
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<body>
|
<body>
|
||||||
<h4 style="width:600px;margin: auto;">EasyPlayer播放器</h4>
|
<h4 style="width:600px;margin: auto;">EasyPlayer播放器</h4>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Binary file not shown.
@@ -8,7 +8,7 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@easydarwin/easyplayer": "^3.3.10",
|
"@easydarwin/easyplayer": "^4.1.0",
|
||||||
"axios": "^0.18.0",
|
"axios": "^0.18.0",
|
||||||
"element-ui": "^2.5.4",
|
"element-ui": "^2.5.4",
|
||||||
"md5": "^2.2.1",
|
"md5": "^2.2.1",
|
||||||
|
|||||||
20
demo/vuecli3/public/EasyPlayer-element.min.js
vendored
20
demo/vuecli3/public/EasyPlayer-element.min.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
BIN
demo/vuecli3/public/EasyPlayer.wasm
Normal file
BIN
demo/vuecli3/public/EasyPlayer.wasm
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
lintOnSave:false,
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: "http://127.0.0.1:10800"
|
proxy: "http://127.0.0.1:10800"
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
libDecoder.wasm
BIN
libDecoder.wasm
Binary file not shown.
Reference in New Issue
Block a user