how can we pass the Flv format files to rtmp using VideoCore Library in ios <p>Hi i am making an app based on broadcast using RTMP, videocore lib and Wowza server my Wowza server play only FLV file But i don't know how to pass FLV videos to server and how to encode H.264 codec if it is H.264 for videos and AAC for Audio then only it will Start the Broadcasting but I am using below code</p> <pre><code>switch(_session.rtmpSessionState) { case VCSessionStateNone:[_session continuousAutofocus]; case VCSessionStatePreviewStarted: case VCSessionStateEnded: case VCSessionStateError: NSLog(@"///////////////////////////////////////////////vcsession error%ld",(long)VCSessionStateError); [_session startRtmpSessionWithURL:urlForStream andStreamKey:streamID]; break; default: [_session endRtmpSession]; break; } </code></pre> <p>and below log displaying in console </p> <p>Hi,</p> <p>I tried connecting the my app from iOS 8.3 to RTMP server(Wowza) using VCSimpleSession. But i am unable to connect. Always returning state -11 (ClientStateNotConnected)</p> <p>Please find the log below:</p> <p>[736:267980] Creating context</p> <p>[736:267980] Context creation succeeded </p> <p>ClientState: 1</p> <p>ClientState: 2 </p> <p>ClientState: 3 </p> <p>ClientState: 4 </p> <p>ClientState: 5 </p> <p>ClientState: 6 </p> <p>received server window size: 10000000 </p> <p>received peer bandwidth limit: 10000000 type: 2 </p> <p>received ping, sending pong. </p> <p>Received invoke </p> <p>pktId: 1 </p> <p>received invoke _result </p> <p>tracked command: connect </p> <p>ClientState: 7 </p> <p>received unknown packet type: 0x18 </p> <p>Received invoke </p> <p>pktId: 2 </p> <p>received invoke _result </p> <p>tracked command: connect</p> <p>ClientState: 11</p>