正在显示
9 个修改的文件
包含
80 行增加
和
44 行删除
@@ -88,9 +88,10 @@ package | @@ -88,9 +88,10 @@ package | ||
88 | * "", otherwise empty string. | 88 | * "", otherwise empty string. |
89 | * @param as_on_progress_change, function(percent:Number):void, where: | 89 | * @param as_on_progress_change, function(percent:Number):void, where: |
90 | * percent, the progress percent, 0 means 0%, 100 means 100%. | 90 | * percent, the progress percent, 0 means 0%, 100 means 100%. |
91 | - * @param as_on_srs_info, function(srs_server:String, srs_primary_authors:String, srs_id:String, srs_pid:String, srs_server_ip:String):void, where: | 91 | + * @param as_on_srs_info, function(srs_server:String, srs_primary:String, srs_authors:String, srs_id:String, srs_pid:String, srs_server_ip:String):void, where: |
92 | * srs_server: the srs server info. | 92 | * srs_server: the srs server info. |
93 | - * srs_primary_authors: the srs version info. | 93 | + * srs_primary: the srs primary authors info. |
94 | + * srs_authors: the srs authors info. | ||
94 | * srs_id: the tracable log id, to direclty grep the log.. | 95 | * srs_id: the tracable log id, to direclty grep the log.. |
95 | * srs_pid: the srs process id, to direclty grep the log. | 96 | * srs_pid: the srs process id, to direclty grep the log. |
96 | * srs_server_ip: the srs server ip, where client connected at. | 97 | * srs_server_ip: the srs server ip, where client connected at. |
@@ -112,7 +113,7 @@ package | @@ -112,7 +113,7 @@ package | ||
112 | * @param js_on_ready, function(js_id:String):void, callback when bandwidth tool is ready to run. | 113 | * @param js_on_ready, function(js_id:String):void, callback when bandwidth tool is ready to run. |
113 | * @param js_on_status_change, function(js_id:String, code:String, data:String):void | 114 | * @param js_on_status_change, function(js_id:String, code:String, data:String):void |
114 | * @param as_on_progress_change, function(js_id:String, percent:Number):void | 115 | * @param as_on_progress_change, function(js_id:String, percent:Number):void |
115 | - * @param as_on_srs_info, function(js_id:String, srs_server:String, srs_primary_authors:String, srs_id:String, srs_pid:String, srs_server_ip:String):void | 116 | + * @param as_on_srs_info, function(js_id:String, srs_server:String, srs_primary:String, srs_authors:String, srs_id:String, srs_pid:String, srs_server_ip:String):void |
116 | * @param as_on_complete, function(js_id:String, start_time:Number, end_time:Number, play_kbps:Number, publish_kbps:Number, play_bytes:Number, publish_bytes:Number, play_time:Number, publish_time:Number):void | 117 | * @param as_on_complete, function(js_id:String, start_time:Number, end_time:Number, play_kbps:Number, publish_kbps:Number, play_bytes:Number, publish_bytes:Number, play_time:Number, publish_time:Number):void |
117 | * | 118 | * |
118 | * the js export functions. | 119 | * the js export functions. |
@@ -268,7 +269,8 @@ package | @@ -268,7 +269,8 @@ package | ||
268 | * srs debug infos | 269 | * srs debug infos |
269 | */ | 270 | */ |
270 | private var srs_server:String = null; | 271 | private var srs_server:String = null; |
271 | - private var srs_primary_authors:String = null; | 272 | + private var srs_primary:String = null; |
273 | + private var srs_authors:String = null; | ||
272 | private var srs_id:String = null; | 274 | private var srs_id:String = null; |
273 | private var srs_pid:String = null; | 275 | private var srs_pid:String = null; |
274 | private var srs_server_ip:String = null; | 276 | private var srs_server_ip:String = null; |
@@ -486,8 +488,11 @@ package | @@ -486,8 +488,11 @@ package | ||
486 | if (evt.info.data.hasOwnProperty("srs_server")) { | 488 | if (evt.info.data.hasOwnProperty("srs_server")) { |
487 | srs_server = evt.info.data.srs_server; | 489 | srs_server = evt.info.data.srs_server; |
488 | } | 490 | } |
489 | - if (evt.info.data.hasOwnProperty("srs_primary_authors")) { | ||
490 | - srs_primary_authors = evt.info.data.srs_primary_authors; | 491 | + if (evt.info.data.hasOwnProperty("srs_primary")) { |
492 | + srs_primary = evt.info.data.srs_primary; | ||
493 | + } | ||
494 | + if (evt.info.data.hasOwnProperty("srs_authors")) { | ||
495 | + srs_authors = evt.info.data.srs_authors; | ||
491 | } | 496 | } |
492 | if (evt.info.data.hasOwnProperty("srs_id")) { | 497 | if (evt.info.data.hasOwnProperty("srs_id")) { |
493 | srs_id = evt.info.data.srs_id; | 498 | srs_id = evt.info.data.srs_id; |
@@ -500,11 +505,11 @@ package | @@ -500,11 +505,11 @@ package | ||
500 | } | 505 | } |
501 | 506 | ||
502 | if (this.as_on_srs_info != null) { | 507 | if (this.as_on_srs_info != null) { |
503 | - this.as_on_srs_info(srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip); | 508 | + this.as_on_srs_info(srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip); |
504 | } | 509 | } |
505 | if (this.js_on_srs_info != null) { | 510 | if (this.js_on_srs_info != null) { |
506 | flash.external.ExternalInterface.call(this.js_on_srs_info, this.js_id, | 511 | flash.external.ExternalInterface.call(this.js_on_srs_info, this.js_id, |
507 | - srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip); | 512 | + srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip); |
508 | } | 513 | } |
509 | } | 514 | } |
510 | if (evt.info.code) { | 515 | if (evt.info.code) { |
@@ -39,9 +39,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -39,9 +39,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
39 | bandwidth.on_update_status = function(status) { | 39 | bandwidth.on_update_status = function(status) { |
40 | // console.log(status); | 40 | // console.log(status); |
41 | } | 41 | } |
42 | - bandwidth.on_srs_info = function(srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip) { | 42 | + bandwidth.on_srs_info = function(srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip) { |
43 | // console.log( | 43 | // console.log( |
44 | - // "server:" + srs_server + ", authors:" + srs_primary_authors + | 44 | + // "server:" + srs_server + ", primary:" + srs_primary + ", authors:" + srs_authors + |
45 | // ", srs_id:" + srs_id + ", srs_pid:" + srs_pid + ", ip:" + srs_server_ip | 45 | // ", srs_id:" + srs_id + ", srs_pid:" + srs_pid + ", ip:" + srs_server_ip |
46 | //); | 46 | //); |
47 | } | 47 | } |
@@ -160,7 +160,7 @@ SrsBandwidth.prototype.on_update_progress = function(percent) { | @@ -160,7 +160,7 @@ SrsBandwidth.prototype.on_update_progress = function(percent) { | ||
160 | } | 160 | } |
161 | SrsBandwidth.prototype.on_update_status = function(status) { | 161 | SrsBandwidth.prototype.on_update_status = function(status) { |
162 | } | 162 | } |
163 | -SrsBandwidth.prototype.on_srs_info = function(srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip) { | 163 | +SrsBandwidth.prototype.on_srs_info = function(srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip) { |
164 | } | 164 | } |
165 | SrsBandwidth.prototype.on_complete = function(start_time, end_time, play_kbps, publish_kbps, play_bytes, publish_bytes, play_time, publish_time) { | 165 | SrsBandwidth.prototype.on_complete = function(start_time, end_time, play_kbps, publish_kbps, play_bytes, publish_bytes, play_time, publish_time) { |
166 | } | 166 | } |
@@ -233,11 +233,11 @@ function __srs_on_update_status(id, code, data) { | @@ -233,11 +233,11 @@ function __srs_on_update_status(id, code, data) { | ||
233 | bandwidth.status = status; | 233 | bandwidth.status = status; |
234 | bandwidth.on_update_status(status); | 234 | bandwidth.on_update_status(status); |
235 | } | 235 | } |
236 | -function __srs_on_srs_info(id, srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip) { | 236 | +function __srs_on_srs_info(id, srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip) { |
237 | var bandwidth = __srs_find_bandwidth(id); | 237 | var bandwidth = __srs_find_bandwidth(id); |
238 | bandwidth.status = status; | 238 | bandwidth.status = status; |
239 | bandwidth.server = srs_server_ip; | 239 | bandwidth.server = srs_server_ip; |
240 | - bandwidth.on_srs_info(srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip); | 240 | + bandwidth.on_srs_info(srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip); |
241 | } | 241 | } |
242 | function __srs_on_complete(id, start_time, end_time, play_kbps, publish_kbps, play_bytes, publish_bytes, play_time, publish_time) { | 242 | function __srs_on_complete(id, start_time, end_time, play_kbps, publish_kbps, play_bytes, publish_bytes, play_time, publish_time) { |
243 | var bandwidth = __srs_find_bandwidth(id); | 243 | var bandwidth = __srs_find_bandwidth(id); |
@@ -101,8 +101,8 @@ package | @@ -101,8 +101,8 @@ package | ||
101 | var as_on_progress_change:Function = function(percent:Number):void { | 101 | var as_on_progress_change:Function = function(percent:Number):void { |
102 | self.on_progress(percent); | 102 | self.on_progress(percent); |
103 | }; | 103 | }; |
104 | - var as_on_srs_info:Function = function(srs_server:String, srs_primary_authors:String, srs_id:String, srs_pid:String, srs_server_ip:String):void { | ||
105 | - self.update_context_items(srs_server, srs_primary_authors, srs_id, srs_pid, srs_server_ip); | 104 | + var as_on_srs_info:Function = function(srs_server:String, srs_primary, srs_authors:String, srs_id:String, srs_pid:String, srs_server_ip:String):void { |
105 | + self.update_context_items(srs_server, srs_primary, srs_authors, srs_id, srs_pid, srs_server_ip); | ||
106 | }; | 106 | }; |
107 | var as_on_complete:Function = function(start_time:Number, end_time:Number, play_kbps:Number, publish_kbps:Number, play_bytes:Number, publish_bytes:Number, play_time:Number, publish_time:Number):void { | 107 | var as_on_complete:Function = function(start_time:Number, end_time:Number, play_kbps:Number, publish_kbps:Number, play_bytes:Number, publish_bytes:Number, play_time:Number, publish_time:Number):void { |
108 | self.on_complete(start_time, end_time, play_kbps, publish_kbps, play_bytes, publish_bytes, play_time, publish_time); | 108 | self.on_complete(start_time, end_time, play_kbps, publish_kbps, play_bytes, publish_bytes, play_time, publish_time); |
@@ -130,7 +130,7 @@ package | @@ -130,7 +130,7 @@ package | ||
130 | trace("progress:" + percent + "%"); | 130 | trace("progress:" + percent + "%"); |
131 | } | 131 | } |
132 | private function update_context_items( | 132 | private function update_context_items( |
133 | - srs_server:String, srs_primary_authors:String, | 133 | + srs_server:String, srs_primary:String, srs_authors:String, |
134 | srs_id:String, srs_pid:String, srs_server_ip:String | 134 | srs_id:String, srs_pid:String, srs_server_ip:String |
135 | ):void { | 135 | ):void { |
136 | // for context menu | 136 | // for context menu |
@@ -138,8 +138,11 @@ package | @@ -138,8 +138,11 @@ package | ||
138 | if (srs_server != null) { | 138 | if (srs_server != null) { |
139 | customItems.push(new ContextMenuItem("Server: " + srs_server)); | 139 | customItems.push(new ContextMenuItem("Server: " + srs_server)); |
140 | } | 140 | } |
141 | - if (srs_primary_authors != null) { | ||
142 | - customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); | 141 | + if (srs_primary != null) { |
142 | + customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary)); | ||
143 | + } | ||
144 | + if (srs_authors != null) { | ||
145 | + customItems.push(new ContextMenuItem("Authors: " + srs_authors)); | ||
143 | } | 146 | } |
144 | if (srs_server_ip != null) { | 147 | if (srs_server_ip != null) { |
145 | customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); | 148 | customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); |
@@ -152,8 +152,11 @@ package | @@ -152,8 +152,11 @@ package | ||
152 | if (srs_server != null) { | 152 | if (srs_server != null) { |
153 | obj.server = srs_server; | 153 | obj.server = srs_server; |
154 | } | 154 | } |
155 | - if (srs_primary_authors != null) { | ||
156 | - obj.contributor = srs_primary_authors; | 155 | + if (srs_primary != null) { |
156 | + obj.contributor = srs_primary; | ||
157 | + } | ||
158 | + if (srs_authors != null) { | ||
159 | + obj.contributor = srs_authors; | ||
157 | } | 160 | } |
158 | 161 | ||
159 | var code:int = flash.external.ExternalInterface.call(js_on_player_metadata, js_id, obj); | 162 | var code:int = flash.external.ExternalInterface.call(js_on_player_metadata, js_id, obj); |
@@ -267,7 +270,8 @@ package | @@ -267,7 +270,8 @@ package | ||
267 | 270 | ||
268 | // srs infos | 271 | // srs infos |
269 | private var srs_server:String = null; | 272 | private var srs_server:String = null; |
270 | - private var srs_primary_authors:String = null; | 273 | + private var srs_primary:String = null; |
274 | + private var srs_authors:String = null; | ||
271 | private var srs_id:String = null; | 275 | private var srs_id:String = null; |
272 | private var srs_pid:String = null; | 276 | private var srs_pid:String = null; |
273 | private var srs_server_ip:String = null; | 277 | private var srs_server_ip:String = null; |
@@ -277,8 +281,11 @@ package | @@ -277,8 +281,11 @@ package | ||
277 | if (srs_server != null) { | 281 | if (srs_server != null) { |
278 | customItems.push(new ContextMenuItem("Server: " + srs_server)); | 282 | customItems.push(new ContextMenuItem("Server: " + srs_server)); |
279 | } | 283 | } |
280 | - if (srs_primary_authors != null) { | ||
281 | - customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); | 284 | + if (srs_primary != null) { |
285 | + customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary)); | ||
286 | + } | ||
287 | + if (srs_authors != null) { | ||
288 | + customItems.push(new ContextMenuItem("Authors: " + srs_authors)); | ||
282 | } | 289 | } |
283 | if (srs_server_ip != null) { | 290 | if (srs_server_ip != null) { |
284 | customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); | 291 | customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); |
@@ -318,8 +325,11 @@ package | @@ -318,8 +325,11 @@ package | ||
318 | if (evt.info.data.hasOwnProperty("srs_server")) { | 325 | if (evt.info.data.hasOwnProperty("srs_server")) { |
319 | srs_server = evt.info.data.srs_server; | 326 | srs_server = evt.info.data.srs_server; |
320 | } | 327 | } |
321 | - if (evt.info.data.hasOwnProperty("srs_primary_authors")) { | ||
322 | - srs_primary_authors = evt.info.data.srs_primary_authors; | 328 | + if (evt.info.data.hasOwnProperty("srs_primary")) { |
329 | + srs_primary = evt.info.data.srs_primary; | ||
330 | + } | ||
331 | + if (evt.info.data.hasOwnProperty("srs_authors")) { | ||
332 | + srs_authors = evt.info.data.srs_authors; | ||
323 | } | 333 | } |
324 | if (evt.info.data.hasOwnProperty("srs_id")) { | 334 | if (evt.info.data.hasOwnProperty("srs_id")) { |
325 | srs_id = evt.info.data.srs_id; | 335 | srs_id = evt.info.data.srs_id; |
@@ -136,7 +136,8 @@ package | @@ -136,7 +136,8 @@ package | ||
136 | 136 | ||
137 | // srs infos | 137 | // srs infos |
138 | private var srs_server:String = null; | 138 | private var srs_server:String = null; |
139 | - private var srs_primary_authors:String = null; | 139 | + private var srs_primary:String = null; |
140 | + private var srs_authors:String = null; | ||
140 | private var srs_id:String = null; | 141 | private var srs_id:String = null; |
141 | private var srs_pid:String = null; | 142 | private var srs_pid:String = null; |
142 | private var srs_server_ip:String = null; | 143 | private var srs_server_ip:String = null; |
@@ -146,8 +147,11 @@ package | @@ -146,8 +147,11 @@ package | ||
146 | if (srs_server != null) { | 147 | if (srs_server != null) { |
147 | customItems.push(new ContextMenuItem("Server: " + srs_server)); | 148 | customItems.push(new ContextMenuItem("Server: " + srs_server)); |
148 | } | 149 | } |
149 | - if (srs_primary_authors != null) { | ||
150 | - customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary_authors)); | 150 | + if (srs_primary != null) { |
151 | + customItems.push(new ContextMenuItem("PrimaryAuthors: " + srs_primary)); | ||
152 | + } | ||
153 | + if (srs_authors != null) { | ||
154 | + customItems.push(new ContextMenuItem("Authors: " + srs_authors)); | ||
151 | } | 155 | } |
152 | if (srs_server_ip != null) { | 156 | if (srs_server_ip != null) { |
153 | customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); | 157 | customItems.push(new ContextMenuItem("SrsIp: " + srs_server_ip)); |
@@ -217,8 +221,11 @@ package | @@ -217,8 +221,11 @@ package | ||
217 | if (evt.info.data.hasOwnProperty("srs_server")) { | 221 | if (evt.info.data.hasOwnProperty("srs_server")) { |
218 | srs_server = evt.info.data.srs_server; | 222 | srs_server = evt.info.data.srs_server; |
219 | } | 223 | } |
220 | - if (evt.info.data.hasOwnProperty("srs_primary_authors")) { | ||
221 | - srs_primary_authors = evt.info.data.srs_primary_authors; | 224 | + if (evt.info.data.hasOwnProperty("srs_primary")) { |
225 | + srs_primary = evt.info.data.srs_primary; | ||
226 | + } | ||
227 | + if (evt.info.data.hasOwnProperty("srs_authors")) { | ||
228 | + srs_authors = evt.info.data.srs_authors; | ||
222 | } | 229 | } |
223 | if (evt.info.data.hasOwnProperty("srs_id")) { | 230 | if (evt.info.data.hasOwnProperty("srs_id")) { |
224 | srs_id = evt.info.data.srs_id; | 231 | srs_id = evt.info.data.srs_id; |
@@ -264,12 +264,14 @@ int srs_connect_app(srs_rtmp_t rtmp) | @@ -264,12 +264,14 @@ int srs_connect_app(srs_rtmp_t rtmp) | ||
264 | } | 264 | } |
265 | 265 | ||
266 | int srs_connect_app2(srs_rtmp_t rtmp, | 266 | int srs_connect_app2(srs_rtmp_t rtmp, |
267 | - char srs_server_ip[128],char srs_server[128], char srs_primary_authors[128], | 267 | + char srs_server_ip[128],char srs_server[128], |
268 | + char srs_primary[128], char srs_authors[128], | ||
268 | char srs_version[32], int* srs_id, int* srs_pid | 269 | char srs_version[32], int* srs_id, int* srs_pid |
269 | ) { | 270 | ) { |
270 | srs_server_ip[0] = 0; | 271 | srs_server_ip[0] = 0; |
271 | srs_server[0] = 0; | 272 | srs_server[0] = 0; |
272 | - srs_primary_authors[0] = 0; | 273 | + srs_primary[0] = 0; |
274 | + srs_authors[0] = 0; | ||
273 | srs_version[0] = 0; | 275 | srs_version[0] = 0; |
274 | *srs_id = 0; | 276 | *srs_id = 0; |
275 | *srs_pid = 0; | 277 | *srs_pid = 0; |
@@ -284,16 +286,17 @@ int srs_connect_app2(srs_rtmp_t rtmp, | @@ -284,16 +286,17 @@ int srs_connect_app2(srs_rtmp_t rtmp, | ||
284 | context->param | 286 | context->param |
285 | ); | 287 | ); |
286 | 288 | ||
287 | - std::string sip, sserver, sauthors, sversion; | 289 | + std::string sip, sserver, sprimary, sauthors, sversion; |
288 | 290 | ||
289 | if ((ret = context->rtmp->connect_app2(context->app, tcUrl, NULL, true, | 291 | if ((ret = context->rtmp->connect_app2(context->app, tcUrl, NULL, true, |
290 | - sip, sserver, sauthors, sversion, *srs_id, *srs_pid)) != ERROR_SUCCESS) { | 292 | + sip, sserver, sprimary, sauthors, sversion, *srs_id, *srs_pid)) != ERROR_SUCCESS) { |
291 | return ret; | 293 | return ret; |
292 | } | 294 | } |
293 | 295 | ||
294 | snprintf(srs_server_ip, 128, "%s", sip.c_str()); | 296 | snprintf(srs_server_ip, 128, "%s", sip.c_str()); |
295 | snprintf(srs_server, 128, "%s", sserver.c_str()); | 297 | snprintf(srs_server, 128, "%s", sserver.c_str()); |
296 | - snprintf(srs_primary_authors, 128, "%s", sauthors.c_str()); | 298 | + snprintf(srs_primary, 128, "%s", sprimary.c_str()); |
299 | + snprintf(srs_authors, 128, "%s", sauthors.c_str()); | ||
297 | snprintf(srs_version, 32, "%s", sversion.c_str()); | 300 | snprintf(srs_version, 32, "%s", sversion.c_str()); |
298 | 301 | ||
299 | return ret; | 302 | return ret; |
@@ -107,13 +107,15 @@ int srs_connect_app(srs_rtmp_t rtmp); | @@ -107,13 +107,15 @@ int srs_connect_app(srs_rtmp_t rtmp); | ||
107 | * SRS debug info: | 107 | * SRS debug info: |
108 | * @param srs_server_ip, 128bytes, debug info, server ip client connected at. | 108 | * @param srs_server_ip, 128bytes, debug info, server ip client connected at. |
109 | * @param srs_server, 128bytes, server info. | 109 | * @param srs_server, 128bytes, server info. |
110 | -* @param srs_primary_authors, 128bytes, primary authors. | 110 | +* @param srs_primary, 128bytes, primary authors. |
111 | +* @param srs_authors, 128bytes, authors. | ||
111 | * @param srs_version, 32bytes, server version. | 112 | * @param srs_version, 32bytes, server version. |
112 | * @param srs_id, int, debug info, client id in server log. | 113 | * @param srs_id, int, debug info, client id in server log. |
113 | * @param srs_pid, int, debug info, server pid in log. | 114 | * @param srs_pid, int, debug info, server pid in log. |
114 | */ | 115 | */ |
115 | int srs_connect_app2(srs_rtmp_t rtmp, | 116 | int srs_connect_app2(srs_rtmp_t rtmp, |
116 | - char srs_server_ip[128], char srs_server[128], char srs_primary_authors[128], | 117 | + char srs_server_ip[128], char srs_server[128], |
118 | + char srs_primary[128], char srs_authors[128], | ||
117 | char srs_version[32], int* srs_id, int* srs_pid | 119 | char srs_version[32], int* srs_id, int* srs_pid |
118 | ); | 120 | ); |
119 | 121 |
@@ -447,8 +447,9 @@ int SrsRtmpClient::connect_app(string app, string tc_url, | @@ -447,8 +447,9 @@ int SrsRtmpClient::connect_app(string app, string tc_url, | ||
447 | 447 | ||
448 | int SrsRtmpClient::connect_app2( | 448 | int SrsRtmpClient::connect_app2( |
449 | string app, string tc_url, SrsRequest* req, bool debug_srs_upnode, | 449 | string app, string tc_url, SrsRequest* req, bool debug_srs_upnode, |
450 | - string& srs_server_ip, string& srs_server, string& srs_primary_authors, | ||
451 | - string& srs_version, int& srs_id, int& srs_pid | 450 | + string& srs_server_ip, string& srs_server, string& srs_primary, |
451 | + string& srs_authors, string& srs_version, int& srs_id, | ||
452 | + int& srs_pid | ||
452 | ){ | 453 | ){ |
453 | int ret = ERROR_SUCCESS; | 454 | int ret = ERROR_SUCCESS; |
454 | 455 | ||
@@ -513,8 +514,11 @@ int SrsRtmpClient::connect_app2( | @@ -513,8 +514,11 @@ int SrsRtmpClient::connect_app2( | ||
513 | SrsAmf0EcmaArray* arr = data->to_ecma_array(); | 514 | SrsAmf0EcmaArray* arr = data->to_ecma_array(); |
514 | 515 | ||
515 | SrsAmf0Any* prop = NULL; | 516 | SrsAmf0Any* prop = NULL; |
516 | - if ((prop = arr->ensure_property_string("srs_primary_authors")) != NULL) { | ||
517 | - srs_primary_authors = prop->to_str(); | 517 | + if ((prop = arr->ensure_property_string("srs_primary")) != NULL) { |
518 | + srs_primary = prop->to_str(); | ||
519 | + } | ||
520 | + if ((prop = arr->ensure_property_string("srs_authors")) != NULL) { | ||
521 | + srs_authors = prop->to_str(); | ||
518 | } | 522 | } |
519 | if ((prop = arr->ensure_property_string("srs_version")) != NULL) { | 523 | if ((prop = arr->ensure_property_string("srs_version")) != NULL) { |
520 | srs_version = prop->to_str(); | 524 | srs_version = prop->to_str(); |
@@ -259,14 +259,16 @@ public: | @@ -259,14 +259,16 @@ public: | ||
259 | * SRS debug info: | 259 | * SRS debug info: |
260 | * @param srs_server_ip, debug info, server ip client connected at. | 260 | * @param srs_server_ip, debug info, server ip client connected at. |
261 | * @param srs_server, server info. | 261 | * @param srs_server, server info. |
262 | - * @param srs_primary_authors, primary authors. | 262 | + * @param srs_primary, primary authors. |
263 | + * @param srs_authors, authors. | ||
263 | * @param srs_id, int, debug info, client id in server log. | 264 | * @param srs_id, int, debug info, client id in server log. |
264 | * @param srs_pid, int, debug info, server pid in log. | 265 | * @param srs_pid, int, debug info, server pid in log. |
265 | */ | 266 | */ |
266 | virtual int connect_app2( | 267 | virtual int connect_app2( |
267 | std::string app, std::string tc_url, SrsRequest* req, bool debug_srs_upnode, | 268 | std::string app, std::string tc_url, SrsRequest* req, bool debug_srs_upnode, |
268 | - std::string& srs_server_ip, std::string& srs_server, std::string& srs_primary_authors, | ||
269 | - std::string& srs_version, int& srs_id, int& srs_pid | 269 | + std::string& srs_server_ip, std::string& srs_server, std::string& srs_primary, |
270 | + std::string& srs_authors, std::string& srs_version, int& srs_id, | ||
271 | + int& srs_pid | ||
270 | ); | 272 | ); |
271 | /** | 273 | /** |
272 | * create a stream, then play/publish data over this stream. | 274 | * create a stream, then play/publish data over this stream. |
-
请 注册 或 登录 后发表评论