更新H265播放器配置,添加新的JS和WASM文件,调整播放器初始化逻辑

This commit is contained in:
lin
2026-03-31 18:02:27 +08:00
parent 4b90b79b3b
commit b476e08d19
9 changed files with 9070 additions and 17 deletions

View File

@@ -5,4 +5,4 @@ spring:
virtual:
enabled: true
profiles:
active: dev
active: 274-dev

View File

@@ -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>

View 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>

View 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>

Binary file not shown.

View 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>

File diff suppressed because it is too large Load Diff

View 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>

View File

@@ -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