mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add SrsPid and SrsId to client response, add pid to log
This commit is contained in:
parent
5ff1ce7cba
commit
e39eed6519
8 changed files with 57 additions and 9 deletions
|
@ -269,6 +269,7 @@ package
|
|||
private var srs_server:String = null;
|
||||
private var srs_primary_authors:String = null;
|
||||
private var srs_id:String = null;
|
||||
private var srs_pid:String = null;
|
||||
private function update_context_items():void {
|
||||
// for context menu
|
||||
var customItems:Array = [new ContextMenuItem("SrsPlayer")];
|
||||
|
@ -278,6 +279,9 @@ package
|
|||
if (srs_primary_authors != null) {
|
||||
customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors));
|
||||
}
|
||||
if (srs_pid != null) {
|
||||
customItems.push(new ContextMenuItem("SrsPid: " + srs_pid));
|
||||
}
|
||||
if (srs_id != null) {
|
||||
customItems.push(new ContextMenuItem("SrsId: " + srs_id));
|
||||
}
|
||||
|
@ -316,6 +320,9 @@ package
|
|||
if (evt.info.data.hasOwnProperty("srs_id")) {
|
||||
srs_id = evt.info.data.srs_id;
|
||||
}
|
||||
if (evt.info.data.hasOwnProperty("srs_pid")) {
|
||||
srs_pid = evt.info.data.srs_pid;
|
||||
}
|
||||
update_context_items();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue