mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the srs js player and publisher, add private object
This commit is contained in:
parent
116129d1c6
commit
46eb1ebd6b
2 changed files with 11 additions and 3 deletions
|
@ -184,7 +184,9 @@
|
|||
// if previous exists, ignore, only add new here.
|
||||
var previous_chat = get_previous_chat_user(previous_chats, chat.id);
|
||||
if (previous_chat) {
|
||||
// update reference.
|
||||
chat.player = previous_chat.player;
|
||||
chat.player.private_object = chat;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -209,7 +211,7 @@
|
|||
|
||||
if (!no_play) {
|
||||
// start the realtime player.
|
||||
var _player = new SrsPlayer("rp_raw_" + chat.id, 600, 300);
|
||||
var _player = new SrsPlayer("rp_raw_" + chat.id, 600, 300, chat);
|
||||
_player.on_player_ready = function() {
|
||||
this.set_bt(0.5);
|
||||
this.set_fs("screen", 100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue