mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add server ip to flash client.
This commit is contained in:
parent
e39eed6519
commit
384687a36d
6 changed files with 21 additions and 0 deletions
Binary file not shown.
|
@ -138,6 +138,7 @@ package
|
|||
private var srs_primary_authors:String = null;
|
||||
private var srs_id:String = null;
|
||||
private var srs_pid:String = null;
|
||||
private var srs_server_ip:String = null;
|
||||
private function update_context_items():void {
|
||||
// for context menu
|
||||
var customItems:Array = [new ContextMenuItem("SrsPlayer")];
|
||||
|
@ -147,6 +148,9 @@ package
|
|||
if (srs_primary_authors != null) {
|
||||
customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors));
|
||||
}
|
||||
if (srs_server_ip != null) {
|
||||
customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip));
|
||||
}
|
||||
if (srs_pid != null) {
|
||||
customItems.push(new ContextMenuItem("SrsPid: " + srs_pid));
|
||||
}
|
||||
|
@ -173,6 +177,9 @@ package
|
|||
if (evt.info.data.hasOwnProperty("srs_pid")) {
|
||||
srs_pid = evt.info.data.srs_pid;
|
||||
}
|
||||
if (evt.info.data.hasOwnProperty("srs_server_ip")) {
|
||||
srs_server_ip = evt.info.data.srs_server_ip;
|
||||
}
|
||||
update_context_items();
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -270,6 +270,7 @@ package
|
|||
private var srs_primary_authors:String = null;
|
||||
private var srs_id:String = null;
|
||||
private var srs_pid:String = null;
|
||||
private var srs_server_ip:String = null;
|
||||
private function update_context_items():void {
|
||||
// for context menu
|
||||
var customItems:Array = [new ContextMenuItem("SrsPlayer")];
|
||||
|
@ -279,6 +280,9 @@ package
|
|||
if (srs_primary_authors != null) {
|
||||
customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors));
|
||||
}
|
||||
if (srs_server_ip != null) {
|
||||
customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip));
|
||||
}
|
||||
if (srs_pid != null) {
|
||||
customItems.push(new ContextMenuItem("SrsPid: " + srs_pid));
|
||||
}
|
||||
|
@ -323,6 +327,9 @@ package
|
|||
if (evt.info.data.hasOwnProperty("srs_pid")) {
|
||||
srs_pid = evt.info.data.srs_pid;
|
||||
}
|
||||
if (evt.info.data.hasOwnProperty("srs_server_ip")) {
|
||||
srs_server_ip = evt.info.data.srs_server_ip;
|
||||
}
|
||||
update_context_items();
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -139,6 +139,7 @@ package
|
|||
private var srs_primary_authors:String = null;
|
||||
private var srs_id:String = null;
|
||||
private var srs_pid:String = null;
|
||||
private var srs_server_ip:String = null;
|
||||
private function update_context_items():void {
|
||||
// for context menu
|
||||
var customItems:Array = [new ContextMenuItem("SrsPlayer")];
|
||||
|
@ -148,6 +149,9 @@ package
|
|||
if (srs_primary_authors != null) {
|
||||
customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors));
|
||||
}
|
||||
if (srs_server_ip != null) {
|
||||
customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip));
|
||||
}
|
||||
if (srs_pid != null) {
|
||||
customItems.push(new ContextMenuItem("SrsPid: " + srs_pid));
|
||||
}
|
||||
|
@ -222,6 +226,9 @@ package
|
|||
if (evt.info.data.hasOwnProperty("srs_pid")) {
|
||||
srs_pid = evt.info.data.srs_pid;
|
||||
}
|
||||
if (evt.info.data.hasOwnProperty("srs_server_ip")) {
|
||||
srs_server_ip = evt.info.data.srs_server_ip;
|
||||
}
|
||||
update_context_items();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue