mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine demo H5 page
This commit is contained in:
parent
37c9066636
commit
9ed388523f
2 changed files with 83 additions and 84 deletions
|
@ -64,7 +64,7 @@
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var sdk = null; // Global handler to do cleanup when replaying.
|
var sdk = null; // Global handler to do cleanup when replaying.
|
||||||
var startPlay = function() {
|
var startPlay = function() {
|
||||||
$('#rtc_media_player').show();
|
$('#rtc_media_player').show();
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
|
|
||||||
startPlay();
|
startPlay();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -68,8 +68,7 @@
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var pc = null; // Global handler to do cleanup when replaying.
|
$(function(){
|
||||||
$(function(){
|
|
||||||
var sdk = null; // Global handler to do cleanup when republishing.
|
var sdk = null; // Global handler to do cleanup when republishing.
|
||||||
var startPublish = function() {
|
var startPublish = function() {
|
||||||
$('#rtc_media_player').show();
|
$('#rtc_media_player').show();
|
||||||
|
@ -114,7 +113,7 @@
|
||||||
if (query.autostart === 'true') {
|
if (query.autostart === 'true') {
|
||||||
startPublish();
|
startPublish();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue