1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the chat, use players_pub_rtmp without hls and gopcache, low latecy

This commit is contained in:
winlin 2013-12-23 10:58:41 +08:00
parent de60fb59f6
commit 6b99a749ea
3 changed files with 93 additions and 6 deletions

View file

@ -48,7 +48,7 @@
// start the publisher.
srs_publisher = new SrsPublisher("local_publisher", 430, 185);
srs_publisher.on_publisher_ready = function(cameras, microphones) {
srs_publisher_initialize_page(
srs_chat_initialize_page(
cameras, microphones,
"#sl_cameras", "#sl_microphones",
"#sl_vcodec", "#sl_profile", "#sl_level", "#sl_gop", "#sl_size",
@ -67,8 +67,8 @@
// start the realtime player.
realtime_player = new SrsPlayer("realtime_player", 430, 185);
realtime_player.on_player_ready = function() {
realtime_player.set_bt(0.8);
realtime_player.set_fs("screen", 100);
this.set_bt(0.5);
this.set_fs("screen", 100);
};
realtime_player.start();
}
@ -211,7 +211,7 @@
// start the realtime player.
var _player = new SrsPlayer("rp_raw_" + chat.id, 600, 300);
_player.on_player_ready = function() {
this.set_bt(0.8);
this.set_bt(0.5);
this.set_fs("screen", 100);
};
_player.start(chat.url);