1
0
Fork 0
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:
winlin 2013-12-23 11:05:34 +08:00
parent 116129d1c6
commit 46eb1ebd6b
2 changed files with 11 additions and 3 deletions

View file

@ -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);