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

Skip to content

Commit 4f894c5

Browse files
committed
[CHG]默认开启声音及声音开启示例
1 parent 214fee1 commit 4f894c5

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

demo/demo-monitor.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@
3030
<!-- <script src="../js/jsPlugin-1.2.0.js"></script> -->
3131
<script src="../js/jquery.min.js"></script>
3232
<h2>预览,回放功能示例:</h2>
33-
<textarea id="url" placeholder="这里输入ezopen地址"></textarea>
34-
<textarea id="accessToken" placeholder="这里输入accessToken"></textarea>
33+
<textarea id="url" placeholder="这里输入ezopen地址">ezopen://[email protected]/210699125/1.live</textarea>
34+
<textarea id="accessToken" placeholder="这里输入accessToken">at.6bqeyhnj2njj33pg0qnw3b44bnbctcaa-26j9fblq2e-0ltz2oh-yakx9mq7x</textarea>
3535
<div class="btn-container">
3636
<button id="init">初始化播放</button>
3737
<button id="stop">结束</button>
38+
<button id="getOSDTime">获取OSD时间</button>
39+
<button id="openSound">打开声音(默认已经开启)</button>
3840
</div>
3941
<div id="playWind" style="width: 600px; height: 400px;">
4042
</div>
@@ -80,7 +82,16 @@ <h2>预览,回放功能示例:</h2>
8082
$("#stop").click(function () {
8183
decoder.stop();
8284
})
83-
85+
$("#getOSDTime").click(function () {
86+
var callback = function(iTime){
87+
alert(iTime);
88+
console.log("iTime",iTime);
89+
}
90+
decoder.getOSDTime(callback);
91+
})
92+
$("#openSound").click(function () {
93+
decoder.openSound();
94+
})
8495
})
8596
</script>
8697
</body>

0 commit comments

Comments
 (0)