mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-10 00:02:16 +08:00
🍥 补充分享播放页面
This commit is contained in:
40
docs/player/player.html
Normal file
40
docs/player/player.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<title>xgplayer</title>
|
||||
<style type="text/css">
|
||||
html, body {width:100%;height:100%;margin:0;padding:0;overflow:hidden;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mse"></div>
|
||||
<script src="//cdn.jsdelivr.net/npm/xgplayer@1.1.4/browser/index.js" charset="utf-8"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/xgplayer-hls.js/browser/index.js" charset="utf-8"></script><script>
|
||||
function get (name) {
|
||||
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
||||
var r = window.location.search.substr(1).match(reg);//search,查询?后面的参数,并匹配正则
|
||||
if (r!=null)return unescape(r[2]); return null;
|
||||
}
|
||||
let link = window.location.href
|
||||
let title = get('title')
|
||||
let url = get('url')
|
||||
document.title = title
|
||||
let player = new HlsJsPlayer({
|
||||
"id": "mse",
|
||||
"url": url,
|
||||
"playsinline": true,
|
||||
"autoplay": true,
|
||||
"fluid": true,
|
||||
"height": window.innerHeight,
|
||||
"width": window.innerWidth,
|
||||
"playbackRate": [ 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 3 ],
|
||||
"x5-video-player-type": "h5",
|
||||
"x5-video-player-fullscreen": "true",
|
||||
"x5-video-orientation": "landscape"
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -52,6 +52,7 @@
|
||||
import { mapMutations } from 'vuex'
|
||||
import setting from '../lib/dexie/setting'
|
||||
import { sites } from '../lib/site/sites'
|
||||
import '../lib/cloud/index.js'
|
||||
export default {
|
||||
name: 'setting',
|
||||
data () {
|
||||
|
||||
@@ -8,11 +8,3 @@ export default {
|
||||
return await setting.update(0, docs)
|
||||
}
|
||||
}
|
||||
/*
|
||||
setting.find().then(res => {
|
||||
console.log(res, 'find')
|
||||
})
|
||||
setting.update({ theme: 'yellow' }).then(res => {
|
||||
console.log(res, 'update')
|
||||
})
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"sync": "同步",
|
||||
"total": "条数据",
|
||||
"website": "官网",
|
||||
"issues": "反馈",
|
||||
"issues": "内测反馈",
|
||||
"theme": "主题",
|
||||
"donate": "捐赠",
|
||||
"set_success": "设置成功。",
|
||||
|
||||
Reference in New Issue
Block a user