mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-06 14:07:49 +08:00
更新H265播放器配置,添加新的JS和WASM文件,调整播放器初始化逻辑
This commit is contained in:
parent
4b90b79b3b
commit
b476e08d19
@ -5,4 +5,4 @@ spring:
|
||||
virtual:
|
||||
enabled: true
|
||||
profiles:
|
||||
active: dev
|
||||
active: 274-dev
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
<script type="text/javascript" src="./static/js/jessibuca/jessibuca.js"></script>
|
||||
<script type="text/javascript" src="./static/js/ZLMRTCClient.js"></script>
|
||||
<script type="text/javascript" src="./static/js/config.js"></script>
|
||||
<script type="text/javascript" src="./static/js/h265web/h265webjs-v20221106.js"></script>
|
||||
<script type="text/javascript" src="./static/js/h265web/missile.js"></script>
|
||||
<script type="text/javascript" src="./static/js/h265web2/h265web.js"></script>
|
||||
<!-- <script type="text/javascript" src="./static/js/h265web/missile.js"></script>-->
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
|
||||
17
web/public/static/js/h265web2/extjs.js
Normal file
17
web/public/static/js/h265web2/extjs.js
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>503 Backend.max_conn reached</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error 503 Backend.max_conn reached</h1>
|
||||
<p>Backend.max_conn reached</p>
|
||||
<h3>Error 54113</h3>
|
||||
<p>Details: cache-hkg17935-HKG 1774949106 3569844636</p>
|
||||
<hr>
|
||||
<p>Varnish cache server</p>
|
||||
</body>
|
||||
</html>
|
||||
17
web/public/static/js/h265web2/extwasm.js
Normal file
17
web/public/static/js/h265web2/extwasm.js
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>503 Backend.max_conn reached</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error 503 Backend.max_conn reached</h1>
|
||||
<p>Backend.max_conn reached</p>
|
||||
<h3>Error 54113</h3>
|
||||
<p>Details: cache-hkg17921-HKG 1774949114 1797962780</p>
|
||||
<hr>
|
||||
<p>Varnish cache server</p>
|
||||
</body>
|
||||
</html>
|
||||
BIN
web/public/static/js/h265web2/extwasm.wasm
Normal file
BIN
web/public/static/js/h265web2/extwasm.wasm
Normal file
Binary file not shown.
17
web/public/static/js/h265web2/h265web.js
Normal file
17
web/public/static/js/h265web2/h265web.js
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>503 Backend.max_conn reached</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error 503 Backend.max_conn reached</h1>
|
||||
<p>Backend.max_conn reached</p>
|
||||
<h3>Error 54113</h3>
|
||||
<p>Details: cache-hkg17923-HKG 1774949130 1280024682</p>
|
||||
<hr>
|
||||
<p>Varnish cache server</p>
|
||||
</body>
|
||||
</html>
|
||||
8969
web/public/static/js/h265web2/h265web_wasm.js
Normal file
8969
web/public/static/js/h265web2/h265web_wasm.js
Normal file
File diff suppressed because it is too large
Load Diff
17
web/public/static/js/h265web2/h265web_wasm.wasm
Normal file
17
web/public/static/js/h265web2/h265web_wasm.wasm
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>503 Backend.max_conn reached</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error 503 Backend.max_conn reached</h1>
|
||||
<p>Backend.max_conn reached</p>
|
||||
<h3>Error 54113</h3>
|
||||
<p>Details: cache-hkg17932-HKG 1774949144 1743864036</p>
|
||||
<hr>
|
||||
<p>Varnish cache server</p>
|
||||
</body>
|
||||
</html>
|
||||
@ -135,20 +135,36 @@ export default {
|
||||
create(url) {
|
||||
this.playerLoading = true
|
||||
const options = {}
|
||||
h265webPlayer[this._uid] = new window.new265webjs(url, Object.assign(
|
||||
{
|
||||
player: 'glplayer', // 播放器容器id
|
||||
width: this.playerWidth,
|
||||
height: this.playerHeight,
|
||||
token: token,
|
||||
extInfo: {
|
||||
coreProbePart: 0.4,
|
||||
probeSize: 8192,
|
||||
ignoreAudio: this.hasAudio === null ? 0 : (this.hasAudio ? 0 : 1)
|
||||
}
|
||||
},
|
||||
options
|
||||
))
|
||||
h265webPlayer[this._uid] = H265webjsPlayer()
|
||||
h265webPlayer[this._uid].build({
|
||||
player_id: 'glplayer',
|
||||
base_url: './output/',
|
||||
wasm_js_uri: 'h265web_wasm.js',
|
||||
wasm_wasm_uri: 'h265web_wasm.wasm',
|
||||
ext_src_js_uri: 'extjs.js',
|
||||
ext_wasm_js_uri: 'extwasm.js',
|
||||
width: this.playerWidth,
|
||||
height: this.playerHeight,
|
||||
auto_play: true,
|
||||
ignore_audio: false
|
||||
})
|
||||
h265webPlayer[this._uid].load_media('./resource/demo.mp4');
|
||||
|
||||
|
||||
// h265webPlayer[this._uid] = new window.H265webjsPlayer(url, Object.assign(
|
||||
// {
|
||||
// player: 'glplayer', // 播放器容器id
|
||||
// width: this.playerWidth,
|
||||
// height: this.playerHeight,
|
||||
// token: token,
|
||||
// extInfo: {
|
||||
// coreProbePart: 0.4,
|
||||
// probeSize: 8192,
|
||||
// ignoreAudio: this.hasAudio === null ? 0 : (this.hasAudio ? 0 : 1)
|
||||
// }
|
||||
// },
|
||||
// options
|
||||
// ))
|
||||
const h265web = h265webPlayer[this._uid]
|
||||
h265web.onOpenFullScreen = () => {
|
||||
this.fullscreen = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user