Skip to content

Commit 0b5388e

Browse files
committed
update pro
1 parent 2cdff19 commit 0b5388e

14 files changed

+24
-24
lines changed

demo/public/pro.zip

90.5 KB
Binary file not shown.

demo/public/pro/crypto-m7s-demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
<div class="input">
9898
<div>
9999
<input
100-
checked
101100
onclick="replay()"
102101
type="checkbox"
103102
id="m7sCryptoAudio"
@@ -208,7 +207,7 @@
208207
isM7sCrypto: true,
209208
cryptoKeyUrl: $cryptoKeyUrl.value,
210209
m7sCryptoKey: $m7sKey.value,
211-
m7sCryptoAudio: $m7sCryptoAudio.checked === true,
210+
isCryptoAudio: $m7sCryptoAudio.checked === true,
212211
},);
213212

214213
jessibuca.on('stats', (stats) => {
@@ -225,6 +224,7 @@
225224
console.error('crashLog',log)
226225
})
227226

227+
228228
$player.style.display = 'inline-block';
229229
$pause.style.display = 'none';
230230
$destroy.style.display = 'none';

demo/public/pro/crypto-sm4-demo.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@
102102
/><span>硬解码(MediaSource,Webcodec)worker解封装</span>
103103
</div>
104104
</div>
105-
<div class="input">
106-
<input
107-
style="width: 400px"
108-
type="text"
109-
id="cryptoKeyUrl"
110-
placeholder="密匙获取的域名[只需要域名,不需要带path](例如:http://test.com),若为空则取播放URL的域名"/>
111-
</div>
112105

113106
<div class="input">
114107
<div>输入URL:</div>

demo/public/pro/crypto-xor-demo.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<meta charset="UTF-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
66
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
7-
<title>Jessica sm4 crypto demo</title>
7+
<title>Jessica xor crypto demo</title>
88
<script src="./vconsole.js"></script>
99
<script src="./js/jessibuca-pro-demo.js"></script>
1010
<link rel="stylesheet" href="./demo.css">
1111
<style>
1212
.container-shell:before {
13-
content: "jessibuca pro sm4 crypto demo player";
13+
content: "jessibuca pro xor crypto demo player";
1414
}
1515
</style>
1616
</head>
@@ -89,15 +89,21 @@
8989
<span>缓存延迟(延迟超过会触发丢帧):</span>
9090
<input placeholder="单位:秒" type="text" id="videoBufferDelay" style="width: 50px" value="1">
9191
<span>秘钥:</span>
92-
<input type="text" id="xorKey" style="width: 200px" placeholder="请输入秘钥"
92+
<input type="text" id="xorKey" style="width: 200px" placeholder="请输入xor秘钥"
9393
value="">
9494
<button id="replay">重播</button>
9595
</div>
9696
</div>
9797
<div class="input">
9898
<div>
99+
<input
100+
onclick="replay()"
101+
type="checkbox"
102+
id="xorCryptoAudio"
103+
/><span>解密音频数据</span>
99104
<input
100105
checked
106+
onclick="replay()"
101107
type="checkbox"
102108
id="demuxUseWorker"
103109
/><span>硬解码(MediaSource,Webcodec)worker解封装</span>
@@ -142,7 +148,7 @@
142148
var $fps = document.querySelector('.fps-inner');
143149
var $xorKey = document.getElementById('xorKey');
144150
var $demuxUseWorker = document.getElementById('demuxUseWorker');
145-
151+
var $xorCryptoAudio = document.getElementById('xorCryptoAudio');
146152
var showOperateBtns = true; // 是否显示按钮
147153
var forceNoOffscreen = true; //
148154
var jessibuca = null;
@@ -192,7 +198,8 @@
192198
// audioEngine:"worklet",
193199
// isFlv: true
194200
isXorCrypto: true,
195-
xorCryptoKey: $xorKey.value
201+
xorCryptoKey: $xorKey.value,
202+
isCryptoAudio: $xorCryptoAudio.checked === true,
196203
},);
197204

198205
jessibuca.on('stats', (stats) => {

demo/public/pro/js/decoder-pro-audio.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/pro/js/decoder-pro-hard-not-wasm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/pro/js/decoder-pro-hard.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/pro/js/decoder-pro-mt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/pro/js/decoder-pro-old.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/pro/js/decoder-pro-simd-mt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)