正在显示
6 个修改的文件
包含
21 行增加
和
0 行删除
| @@ -138,6 +138,7 @@ package | @@ -138,6 +138,7 @@ package | ||
| 138 | private var srs_primary_authors:String = null; | 138 | private var srs_primary_authors:String = null; |
| 139 | private var srs_id:String = null; | 139 | private var srs_id:String = null; |
| 140 | private var srs_pid:String = null; | 140 | private var srs_pid:String = null; |
| 141 | + private var srs_server_ip:String = null; | ||
| 141 | private function update_context_items():void { | 142 | private function update_context_items():void { |
| 142 | // for context menu | 143 | // for context menu |
| 143 | var customItems:Array = [new ContextMenuItem("SrsPlayer")]; | 144 | var customItems:Array = [new ContextMenuItem("SrsPlayer")]; |
| @@ -147,6 +148,9 @@ package | @@ -147,6 +148,9 @@ package | ||
| 147 | if (srs_primary_authors != null) { | 148 | if (srs_primary_authors != null) { |
| 148 | customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); | 149 | customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); |
| 149 | } | 150 | } |
| 151 | + if (srs_server_ip != null) { | ||
| 152 | + customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); | ||
| 153 | + } | ||
| 150 | if (srs_pid != null) { | 154 | if (srs_pid != null) { |
| 151 | customItems.push(new ContextMenuItem("SrsPid: " + srs_pid)); | 155 | customItems.push(new ContextMenuItem("SrsPid: " + srs_pid)); |
| 152 | } | 156 | } |
| @@ -173,6 +177,9 @@ package | @@ -173,6 +177,9 @@ package | ||
| 173 | if (evt.info.data.hasOwnProperty("srs_pid")) { | 177 | if (evt.info.data.hasOwnProperty("srs_pid")) { |
| 174 | srs_pid = evt.info.data.srs_pid; | 178 | srs_pid = evt.info.data.srs_pid; |
| 175 | } | 179 | } |
| 180 | + if (evt.info.data.hasOwnProperty("srs_server_ip")) { | ||
| 181 | + srs_server_ip = evt.info.data.srs_server_ip; | ||
| 182 | + } | ||
| 176 | update_context_items(); | 183 | update_context_items(); |
| 177 | } | 184 | } |
| 178 | 185 |
| @@ -270,6 +270,7 @@ package | @@ -270,6 +270,7 @@ package | ||
| 270 | private var srs_primary_authors:String = null; | 270 | private var srs_primary_authors:String = null; |
| 271 | private var srs_id:String = null; | 271 | private var srs_id:String = null; |
| 272 | private var srs_pid:String = null; | 272 | private var srs_pid:String = null; |
| 273 | + private var srs_server_ip:String = null; | ||
| 273 | private function update_context_items():void { | 274 | private function update_context_items():void { |
| 274 | // for context menu | 275 | // for context menu |
| 275 | var customItems:Array = [new ContextMenuItem("SrsPlayer")]; | 276 | var customItems:Array = [new ContextMenuItem("SrsPlayer")]; |
| @@ -279,6 +280,9 @@ package | @@ -279,6 +280,9 @@ package | ||
| 279 | if (srs_primary_authors != null) { | 280 | if (srs_primary_authors != null) { |
| 280 | customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); | 281 | customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); |
| 281 | } | 282 | } |
| 283 | + if (srs_server_ip != null) { | ||
| 284 | + customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); | ||
| 285 | + } | ||
| 282 | if (srs_pid != null) { | 286 | if (srs_pid != null) { |
| 283 | customItems.push(new ContextMenuItem("SrsPid: " + srs_pid)); | 287 | customItems.push(new ContextMenuItem("SrsPid: " + srs_pid)); |
| 284 | } | 288 | } |
| @@ -323,6 +327,9 @@ package | @@ -323,6 +327,9 @@ package | ||
| 323 | if (evt.info.data.hasOwnProperty("srs_pid")) { | 327 | if (evt.info.data.hasOwnProperty("srs_pid")) { |
| 324 | srs_pid = evt.info.data.srs_pid; | 328 | srs_pid = evt.info.data.srs_pid; |
| 325 | } | 329 | } |
| 330 | + if (evt.info.data.hasOwnProperty("srs_server_ip")) { | ||
| 331 | + srs_server_ip = evt.info.data.srs_server_ip; | ||
| 332 | + } | ||
| 326 | update_context_items(); | 333 | update_context_items(); |
| 327 | } | 334 | } |
| 328 | 335 |
| @@ -139,6 +139,7 @@ package | @@ -139,6 +139,7 @@ package | ||
| 139 | private var srs_primary_authors:String = null; | 139 | private var srs_primary_authors:String = null; |
| 140 | private var srs_id:String = null; | 140 | private var srs_id:String = null; |
| 141 | private var srs_pid:String = null; | 141 | private var srs_pid:String = null; |
| 142 | + private var srs_server_ip:String = null; | ||
| 142 | private function update_context_items():void { | 143 | private function update_context_items():void { |
| 143 | // for context menu | 144 | // for context menu |
| 144 | var customItems:Array = [new ContextMenuItem("SrsPlayer")]; | 145 | var customItems:Array = [new ContextMenuItem("SrsPlayer")]; |
| @@ -148,6 +149,9 @@ package | @@ -148,6 +149,9 @@ package | ||
| 148 | if (srs_primary_authors != null) { | 149 | if (srs_primary_authors != null) { |
| 149 | customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); | 150 | customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); |
| 150 | } | 151 | } |
| 152 | + if (srs_server_ip != null) { | ||
| 153 | + customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); | ||
| 154 | + } | ||
| 151 | if (srs_pid != null) { | 155 | if (srs_pid != null) { |
| 152 | customItems.push(new ContextMenuItem("SrsPid: " + srs_pid)); | 156 | customItems.push(new ContextMenuItem("SrsPid: " + srs_pid)); |
| 153 | } | 157 | } |
| @@ -222,6 +226,9 @@ package | @@ -222,6 +226,9 @@ package | ||
| 222 | if (evt.info.data.hasOwnProperty("srs_pid")) { | 226 | if (evt.info.data.hasOwnProperty("srs_pid")) { |
| 223 | srs_pid = evt.info.data.srs_pid; | 227 | srs_pid = evt.info.data.srs_pid; |
| 224 | } | 228 | } |
| 229 | + if (evt.info.data.hasOwnProperty("srs_server_ip")) { | ||
| 230 | + srs_server_ip = evt.info.data.srs_server_ip; | ||
| 231 | + } | ||
| 225 | update_context_items(); | 232 | update_context_items(); |
| 226 | } | 233 | } |
| 227 | 234 |
-
请 注册 或 登录 后发表评论