XPSDKVideoConnectionDelegate
@protocol XPSDKVideoConnectionDelegate
Video connection delegate protocol. Delegates of XPVideoConnection must implement this protocol to receive notifications form the video connection - new images, recording/motion/playback state changes, etc
-
Notifies the delegate that the connection has received HTTP response upon opening the connection. Push mode video connections only call this method once - on the first request.
Declaration
Objective-C
- (void)videoConnection:(XPSDKDownstreamVideoConnection *)videoConnection receivedResponse:(id)headers;Parameters
videoConnection- The video connection
headersList of headers received form the server
-
Notifies the delegate that the connection has received new frame. This is called even for frames that don’t contain images. The reason is that the header may contain just recording/motion/playback events
Declaration
Objective-C
- (void)videoConnection:(XPSDKDownstreamVideoConnection *)videoConnection receivedFrame:(XPSDKVideoConnectionFrame *)frame;Parameters
videoConnection- The video connection
receivedFrame- The frame that has been received
-
Notifies the delegate that the connection has received new playlist.
Declaration
Objective-C
- (void)videoConnection:(XPSDKDownstreamVideoConnection *)videoConnection receivedPlaylist:(XPSDKVideoConnectionSegment *)segment;Parameters
videoConnection- The video connection
segment- The segment that has been received
-
Notifies the delegate of a connection interruption. Usually network error
Declaration
Objective-C
- (void)videoConnection:(XPSDKDownstreamVideoConnection *)videoConnection failedWithError:(id)error;Parameters
videoConnection- The video connection
error- The error
-
Notifies the delegate the video connection has been closed.
Declaration
Objective-C
- (void)videoConnectionFinished: (XPSDKDownstreamVideoConnection *)videoConnection;Parameters
videoConnection- The video connection
-
Use this when you only have received headers, but not something with them
Declaration
Objective-C
- (void)videoConnection:(XPSDKDownstreamVideoConnection *)videoConnection receivedHeadersForFrame:(XPSDKVideoConnectionFrame *)frame;Parameters
videoConnection- The video connection
frame- the frame for which the headers are received
XPSDKVideoConnectionDelegate Protocol Reference