XPSDKUpstreamVideoConnectionDelegate

@protocol XPSDKUpstreamVideoConnectionDelegate

Upstream video connection delegate

  • Called in case an error has occured during the upload

    Note that this method will ALWAYS be called on the main thread!

    Declaration

    Objective-C

    - (void)upstreamVideoConnection:
                (XPSDKUpstreamVideoConnection *)upstreamVideoConnection
                      receivedError:(id)error;

    Parameters

    upstreamVideoConnection

    The upstream connection instance

    error

    Brief description of the error. Most likely the error code will be an HTTP status code. You can also check the underlying error, if it exists for more information

  • Called on each image upload.

    WARNING: This method will most likely be called on a thread, different from the main one!

    Declaration

    Objective-C

    - (void)upstreamVideoConnection:
                (XPSDKUpstreamVideoConnection *)upstreamVideoConnection
        uploadedFrameWithCompression:(float)compression
                                size:(id)byteLength
                                 fps:(id)fps;

    Parameters

    upstreamVideoConnection

    Pointer to the upstream instance

    compression

    Compression of the image (0..1)

    byteLength

    Size of the image in bytes

    fps

    Average frames per second