mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
feat(xgplayer): 删除不合规代码
This commit is contained in:
parent
bc1d781433
commit
84f0f8b2d1
@ -22,12 +22,7 @@
|
||||
-webkit-filter: saturate(100%) !important;
|
||||
}
|
||||
</style>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="//unpkg.pstatp.com/xgplayer/3.0.0-alpha.110-18/dist/xgplayer.min.css"
|
||||
/>
|
||||
<!-- <script src="//unpkg.pstatp.com/xgplayer/3.0.0-alpha.101-7/dist/index.min.js" charset="utf-8"></script>-->
|
||||
<!-- <script src="http://unpkg.pstatp.com/xgplayer-mp4/3.0.0-next.3/dist/index.min.js" charset="utf-8"></script>-->
|
||||
<link rel="stylesheet" href="//unpkg.pstatp.com/xgplayer/3.0.0-alpha.110-18/dist/xgplayer.min.css"/>
|
||||
</head>
|
||||
<button id="btn" onclick="playNext()">播放下一个</button>
|
||||
<body>
|
||||
@ -78,8 +73,8 @@
|
||||
let player = new Player({
|
||||
id: 'vs',
|
||||
autoplay: true,
|
||||
volume: 0,
|
||||
url: '',
|
||||
volume: 1,
|
||||
url: './output.mp3',
|
||||
//url: './video/output.m4a',//'./video/1080p.mp4',
|
||||
// url:'https://lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/xgplayer-demo-720p.mp4',
|
||||
poster: "//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg",
|
||||
@ -94,7 +89,7 @@
|
||||
},
|
||||
definition: {
|
||||
defaultDefinition: '720p',
|
||||
list: videoList
|
||||
// list: videoList
|
||||
},
|
||||
// TestSpeed: {
|
||||
// url: '//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/xgplayer-demo-720p.mp4',
|
||||
|
@ -8,7 +8,7 @@ let player=new Player({
|
||||
id: 'vs',
|
||||
autoplay: true,
|
||||
volume: 0.3,
|
||||
url:'./err.mp4',
|
||||
url:'',
|
||||
poster: "//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg",
|
||||
playsinline: true,
|
||||
thumbnail: {
|
||||
@ -19,7 +19,7 @@ let player=new Player({
|
||||
row: 10,
|
||||
// urls: ['//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/xgplayer-demo-thumbnail.jpg'],
|
||||
},
|
||||
height: window.innerHeight,
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight / 2,
|
||||
width: window.innerWidth / 2,
|
||||
plugins: [Mp4Player]
|
||||
});
|
||||
|
@ -20,12 +20,12 @@
|
||||
// vid: '1',
|
||||
// src: './audio/1.mp3',
|
||||
// title: '11111.mp3',
|
||||
// poster: "https://p9-pc-sign.douyinpic.com/tos-cn-p-0015/ocAY2PfD40Q8Z5SHAdMg7IC8ebbRe7BEBn0CAa~tplv-dy-resize-origshort-autoq-75:330.jpeg?x-expires=1988096400&x-signature=jWrbLPoE8ow7fdCYyyeUWw2Oaf0%3D&from=3213915784&s=PackSourceEnum_FEED&se=false&sc=cover&biz_tag=pcweb_cover&l=20230103173048B1113E7290F15B007F0B"
|
||||
// poster: ""
|
||||
// }, {
|
||||
// vid: '2',
|
||||
// src: './audio/2.mp3',
|
||||
// title: '22222.mp3',
|
||||
// poster: "https://p9-pc-sign.douyinpic.com/image-cut-tos-priv/12f35be1484d36bf1430bb46e4874589~tplv-dy-resize-origshort-autoq-75:330.jpeg?x-expires=1988096400&x-signature=wl1p8fpK09dXkS7uWO1qG1GRSPU%3D&from=3213915784&s=PackSourceEnum_FEED&se=false&sc=cover&biz_tag=pcweb_cover&l=20230103173048B1113E7290F15B007F0B"
|
||||
// poster: ""
|
||||
// }, {
|
||||
// vid: '3',
|
||||
// src: './audio/3.mp3',
|
||||
|
@ -220,22 +220,14 @@ function initSubtitle(player) {
|
||||
label: '中文',
|
||||
language: 'cn',
|
||||
id: '1',
|
||||
// list: _lis1,
|
||||
isDefault: true,
|
||||
//url: 'http://tosv.byted.org/obj/tos-cn-o-0004/0edaf77715f44faebe2e348f5157280a'
|
||||
url: './subtitle/cn1.vtt'
|
||||
//url: 'http://lf1-xgcdn-tos.pstatp.com/obj/tos-cn-o-0004/52ce3882d70941d5b660913cbd83d969'
|
||||
//url: './ass/cn.ass'
|
||||
}, {
|
||||
label: '英文',
|
||||
language: 'en',
|
||||
id: '1',
|
||||
// list: _lis1,
|
||||
isDefault: false,
|
||||
//url: 'http://tosv.byted.org/obj/tos-cn-o-0004/0edaf77715f44faebe2e348f5157280a'
|
||||
url: './subtitle/en2.vtt'
|
||||
//url: 'http://lf1-xgcdn-tos.pstatp.com/obj/tos-cn-o-0004/52ce3882d70941d5b660913cbd83d969'
|
||||
//url: './ass/cn.ass'
|
||||
}],
|
||||
defaultOpen: true,
|
||||
mode: 'stroke',
|
||||
|
@ -93,14 +93,6 @@ function init(index = 0, config = {}) {
|
||||
// height: 50,
|
||||
mode: 'short'
|
||||
},
|
||||
thumbnail: {
|
||||
"urls": ["http://p3-sign.douyinpic.com/tos-cn-p-0015/99a06cef5a744d4cb141011c473bc43e_1695562287~tplv-noop.image?dy_q=1697167718&l=20231013112837AAD52BFD56A173017E9B&x-expires=1697171678&x-signature=1yfeS3TcWmcANU%2BWNRcYeyhs2%2FA%3D"],
|
||||
"pic_num": 361,
|
||||
"row": 37,
|
||||
"col": 10,
|
||||
"height": 136,
|
||||
"width": 240
|
||||
},
|
||||
seekedStatus: 'auto',
|
||||
texttrack: {
|
||||
debugger: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user