mirror of
https://github.com/hevin-lee/EasyPlayerJs.git
synced 2026-06-15 06:10:01 +00:00
update README.md
This commit is contained in:
3178
EasyWasmPlayer.js
3178
EasyWasmPlayer.js
File diff suppressed because one or more lines are too long
@@ -131,6 +131,7 @@ export default {
|
||||
}
|
||||
</style>
|
||||
```
|
||||
## <a href="http://www.easydarwin.org/easywasmplayer/" target="_blank" title="在线演示">在线演示</a><br/>
|
||||
|
||||
**注意:** 若出现libDecoder.wasm的文件报404错误,提示找不到libDecoder.wasm文件,一定要排查是否存放在项目的根目录。
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@
|
||||
<br>
|
||||
<div style="width:600px;height: 400px; background-color:pink;margin: auto;">
|
||||
<div id="newplay" onClick="onplay"></div>
|
||||
<p>列如:http://127.0.0.1:8080/flv/hls/stream.flv</p>
|
||||
<p>列如:http://127.0.0.1:8080/flv/hls/stream.flv <a href="http://www.easydarwin.org/easywasmplayer/" target="_blank"> 在线演示</a></p>
|
||||
<p style="color:red;font-size: 12px;">注意:本实例需要以服务方式启动 <a href="https://blog.csdn.net/weixin_43194037/article/details/108885134" target="_blank">搭建服务教程</a></p>
|
||||
<input type="text" id="value">
|
||||
<button id="btn">播放</button>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,16 +1,22 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<h4>H265播放器</h4>
|
||||
<el-input v-model="input" placeholder="请输入播放地址接口" size="mini"></el-input>
|
||||
<p>列如:http://127.0.0.1:8080/flv/hls/stream.flv <a href="http://www.easydarwin.org/easywasmplayer/" target="_blank"> 在线演示</a></p>
|
||||
<el-button class="player-button" size="mini" type="success" @click="play">播放</el-button>
|
||||
<el-row class="box">
|
||||
<el-col :xs="12" class="list"></el-col>
|
||||
<el-col :xs="12" class="list"></el-col>
|
||||
<el-col :xs="12" class="list"></el-col>
|
||||
<el-col :xs="12" class="list"></el-col>
|
||||
</el-row>
|
||||
<!-- <h4>H265播放器</h4>
|
||||
<div class="player-box">
|
||||
<div id="wasmPlayer"></div>
|
||||
</div>
|
||||
<el-input v-model="input" placeholder="请输入播放地址接口" size="mini"></el-input>
|
||||
<p>列如:http://127.0.0.1:8080/flv/hls/stream.flv</p>
|
||||
<el-button class="player-button" size="mini" type="success" @click="play">播放</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-button class="player-button" size="mini" type="success" @click="play">播放</el-button> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -52,32 +58,41 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.el-row,
|
||||
.el-col {
|
||||
min-height: 300px;
|
||||
max-width: 600px;
|
||||
// .el-row,
|
||||
// .el-col {
|
||||
// min-height: 300px;
|
||||
// max-width: 600px;
|
||||
// margin: auto;
|
||||
// }
|
||||
// .el-input {
|
||||
// padding: 5px;
|
||||
// box-sizing: border-box;
|
||||
// }
|
||||
// .player-button {
|
||||
// margin: 5px;
|
||||
// width: 100%;
|
||||
// }
|
||||
// p {
|
||||
// font-size: 12px;
|
||||
// color: #67c23a;
|
||||
// }
|
||||
// .player-box {
|
||||
// height: 400px;
|
||||
// width: 600px;
|
||||
// margin: auto;
|
||||
// margin-top: 2%;
|
||||
// border: 1px solid #eee;
|
||||
// }
|
||||
// .el-input__inner:focus {
|
||||
// border-color: #67c23a !important;
|
||||
// }
|
||||
.box {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
margin-top: 20px;
|
||||
.list {
|
||||
padding-bottom: 50%;
|
||||
background-color: red;
|
||||
}
|
||||
.el-input {
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.player-button {
|
||||
margin: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
p {
|
||||
font-size: 12px;
|
||||
color: #67c23a;
|
||||
}
|
||||
.player-box {
|
||||
height: 400px;
|
||||
width: 600px;
|
||||
margin: auto;
|
||||
margin-top: 2%;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
.el-input__inner:focus {
|
||||
border-color: #67c23a !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user