mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Send connect() and createStream() in RTMP system channel, not video channel.
Patch by Sergiy (com gmail . piratfm @ mail =) Originally committed as revision 20716 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5e9ad75985
commit
31da596634
@ -100,7 +100,7 @@ static void gen_connect(URLContext *s, RTMPContext *rt, const char *proto,
|
||||
uint8_t ver[32], *p;
|
||||
char tcurl[512];
|
||||
|
||||
ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, 4096);
|
||||
ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE, 0, 4096);
|
||||
p = pkt.data;
|
||||
|
||||
snprintf(tcurl, sizeof(tcurl), "%s://%s:%d/%s", proto, host, port, rt->app);
|
||||
@ -143,7 +143,7 @@ static void gen_create_stream(URLContext *s, RTMPContext *rt)
|
||||
uint8_t *p;
|
||||
|
||||
av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Creating stream...\n");
|
||||
ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, 25);
|
||||
ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE, 0, 25);
|
||||
|
||||
p = pkt.data;
|
||||
ff_amf_write_string(&p, "createStream");
|
||||
|
Loading…
Reference in New Issue
Block a user