2 Star 1 Fork 10

流媒体 / h265player

forked from Black / h265player 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
componentadd.html 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
Xu Luying 提交于 2020-01-20 10:00 . Init commit
<!Doctype html>
<html xmlns=http://www.w3.org/1999/xhtml> <head>
<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<meta content=always name=referrer>
<link rel="shortcut icon" href=/favicon.ico type=image/x-icon> <title>H.265在线播放器DEMO</title>
<link rel="stylesheet" href="../dist/goldplay-h265.css">
<script src="../dist/goldplay-h265-sdk.js"></script>
<style>
.play-container {
width: 800px;
height: 600px;
/* background-color: #000; */
margin: 20px 0 0 100px;
float:left;
}
.inline {
display: inline-block;
width: 50px;
}
.play-container2 {
width: 300px;
height: 400px;
background-color: red;
margin: 0 0 0 100px;
float:left;
}
code {
font-family: Arial,Helvetica,sans-serif;
color: #476582;
padding: .25rem .5rem;
margin: 0;
font-size: .85em;
background-color: #e6effb;
border-radius: 3px;
}
code.desc {
background-color: rgba(27,31,35,.05);
}
.goldplay__control--testcom {
display: inline-block;
color: #ccc;
vertical-align: middle;
margin: -14px 10px 0 0;
}
</style>
</head>
<body>
<div id="PlayerWrapper">
<div class="play-container"></div>
</div>
<br clear="all">
<br>
<script type="module">
//load compoent
import './component.js'
(function (win, doc) {
const Config = {
get buildPath() {
let path = win.location.origin
let pathname = win.location.pathname
let demoIdx = pathname.lastIndexOf('/demo/')
return path + pathname.substr(0, demoIdx) + '/dist/'
},
get libPath() {
return this.buildPath + 'lib/'
}
}
let el = doc.querySelector('.play-container')
let player = new GoldPlay(el, {
sourceURL: 'http://localhost:9011/gitwork/date/265/playlist.m3u8',
type: 'HLS',
libPath: Config.libPath,
playBackRate: 1
})
})(window, document)
</script>
</body>
</html>
1
https://gitee.com/streaming-media-item/h265player.git
git@gitee.com:streaming-media-item/h265player.git
streaming-media-item
h265player
h265player
master

搜索帮助