Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 177b0ba

Browse files
committed
[feat]升级解码库到v4.0
1 parent 34a26e3 commit 177b0ba

14 files changed

+4526
-1
lines changed

demo/demo-monitor.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<h2>预览,回放功能示例:</h2>
5151
<textarea id="url" placeholder="这里输入ezopen地址">ezopen://open.ys7.com/C69594192/1.live</textarea>
5252
<textarea id="accessToken"
53-
placeholder="这里输入accessToken">at.0t47cm38cjnjbtls4b2maklacln5z2fe-60t6vdglsm-1253dc7-6afknzrja</textarea>
53+
placeholder="这里输入accessToken">at.4v4hoo9g74bh6e1s10orja2m2enf0v0q-7efr7org7c-1nvig09-xxplz9q7r</textarea>
5454
<div class="btn-container">
5555
<button id="init">初始化播放</button>
5656
<button id="play">播放</button>
@@ -89,6 +89,7 @@ <h2>预览,回放功能示例:</h2>
8989
height: 400,
9090
handleError: handleError,
9191
handleSuccess: handleSuccess,
92+
decoderVersion: "v4.0"
9293
});
9394
// 这里是打印日志,本例抛出到播放页面
9495
decoder.on('log', log);

ezuikit.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,10 @@ function addCss(filepath, callback) {
17571757
var jsPluginPath = playParams.decoderPath + '/js/jsPlugin-1.2.0.min.js?v=20211012';
17581758
if(playParams.decoderVersion) {
17591759
var jsPluginPath = playParams.decoderPath + '/js/versions/' + playParams.decoderVersion + '/jsPlugin-1.2.0.min.js?v=20211012';
1760+
if(playParams.decoderVersion === "v4.0") {
1761+
addJs( playParams.decoderPath + '/js/versions/' + playParams.decoderVersion +'/AudioRenderer.js')
1762+
addJs( playParams.decoderPath + '/js/versions/' + playParams.decoderVersion +'/SuperRender_10.js')
1763+
}
17601764
}
17611765
document.getElementById(playParams.id).style.width = (playParams.width || 600) + 'px';
17621766
document.getElementById(playParams.id).style.height= (playParams.height || 400) + 'px';

js/versions/v4.0/AudioRenderer.js

Lines changed: 225 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)