File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments