Live Streaming - where to initialize

We’re setting up the Live streaming of the session to our server. It is a server setup with ngnix rtmp module. We are using Video SDK and using the ZoomInstantSample. If I use OBS or any other broadcast / live software and send it to our server the stream is visible however our zoom app is not sending the stream. Any suggestions based on below what might be wrong:

In the CanvasViewController.m we have the ZoomVideoSDKLiveStreamHelper. We initialize it based on a username (because we want that user’s stream recorded (it’s the host).

Here is the code:

NSString *username = [[NSUserDefaults standardUserDefaults]
stringForKey:@“Username”];

if([username  isEqual: @"hoststreamuser"])
{
    NSTimeInterval delayInSeconds = 3.0;
    dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
    dispatch_after(popTime, dispatch_get_main_queue(), ^(void)
    {
        // Get the ZoomVideoSDKLiveStreamHelper to perform livestream actions.
        ZoomInstantSDKLiveStreamHelper *liveStreamHelper = [[ZoomInstantSDK shareInstance] getLiveStreamHelper];

        // Check if live stream can start.
        if ([liveStreamHelper canStartLiveStream] == Errors_Success) {

            // Call startLiveStreamWithStreamingURL to begin live stream.
            ZoomInstantSDKERROR liveStreamStartReturnValue = [liveStreamHelper startLiveStreamWithStreamingURL:@"rtmp://ouripaddress/live" StreamingKey:@"ourstreamkey" BroadcastURL:@"rtmp://ouripaddress/live"];

            switch (liveStreamStartReturnValue)
            {
                case Errors_Success:
                    NSLog(@"Live stream successfully began.");
                    break;
                case Errors_Session_Live_Stream_Error:
                    NSLog(@"Live stream could not start.");
                    break;
                default:
                    break;
            }
        }
        
    });
}

Are we initializing it in the wrong place or are we not able to grab a specific user stream?

Hey @CodyDigital,

Thanks for using the dev forum!

What exactly do you mean by the the stream is visible? Does this mean you are seeing the stream start but the SDK isnt actually sending any frames to your server?

Thanks!
Michael

Thanks for your help. I mean our streaming server is working if I stream from another software (OBS) so I know it is not our streaming server with the issue.

Hey @CodyDigital,

What version of the SDK are you using?

Thanks!
Michael

We’re using the latest video ios sample app.

Hey @CodyDigital,

What error is returned from startLiveStreamWithStreamingURL?

Thanks!
Michael

On android we get 0 for canStartLiveStream and in iOS we get 2004.

For the onLiveStreamStatusChanged we get these two logged:
D/onLiveStreamStatusChanged: ZoomInstantSDKLiveStreamStatus_Connecting
D/onLiveStreamStatusChanged: ZoomInstantSDKLiveStreamStatus_Ended

They happen together.

Im getting Live stream successfully began. response Errors_Success

Hey @CodyDigital,

Can you reproduce the issue one more time and then send me over the SDK logs from that instance? Instructions for obtaining logs can be found here: https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization. Note, these instructions are technically for the Meeting SDK, but the steps are the same. Please send them via email to developersupport@zoom.us and mention my name and a link to this post.

Thanks!
Michael

Michael, we are having some issues where the app is only sometimes broadcasting. Sometime we have to start and stop the zoom a few times. I sent the logs to developersupport. Can you take a look at those? (ticket #12482252)

Thanks.

Hey @CodyDigital,

Yep, I will follow up with you there.

Thanks!
Michael

Hello @Michael_Condon , I know you’re extremely busy but did you get a chance to look at the logs we sent?

Hey @CodyDigital,

I have received them and engineering is still investigating. No updates quite yet.

Thanks!
Michael

Hello @Michael_Condon were you able to see the logs?

Hey @CodyDigital,

Yep, the logs are still being investigated by the engineering team.

Thanks!
Michael

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.