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
upstreamVideoConnectionThe upstream connection instance
errorBrief 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
upstreamVideoConnectionPointer to the upstream instance
compressionCompression of the image (0..1)
byteLengthSize of the image in bytes
fpsAverage frames per second
XPSDKUpstreamVideoConnectionDelegate Protocol Reference