XPSDKUpstreamVideoConnection

@interface XPSDKUpstreamVideoConnection : XPSDKVideoConnection

The XPSDKUpstreamVideoConnection class handles uploading video frames to server

  • Declaration

    Objective-C

    NSMutableURLRequest * request
  • Declaration

    Objective-C

    unsigned int frameCounter
  • fps

    Declaration

    Objective-C

    float fps
  • Flag that indicates that connection is ready for more data

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) int readyForMoreData;
  • The compression of video

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) int compression;
  • Upstream connection delegate

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<XPSDKUpstreamVideoConnectionDelegate>
        upstreamEventsDelegate;
  • The location data

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) XPSDKLocationData *location;
  • Flag that indicates whether server supports location

    Declaration

    Objective-C

    @property (readonly, nonatomic) int locationSupportedByServer;
  • The start time of frames per second

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate * fpsStartTime
  • The index of video device

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) int videoDeviceIndex;
  • Flag that indicates if upstream is automatic

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) int automatic;
  • Designated initializer. Instances should only ne created by the main connection!

    Declaration

    Objective-C

    - (id)initFromControlConnection:(XPSDKConnection *)mainConnection
                            videoID:(XPSDKVideoID)vid
          locationSupportedByServer:(id)locSupported;

    Parameters

    mainConnection

    the main connection from which the video connection is derived.

    vid

    Video ID

  • Ope

    Declaration

    Objective-C

    - (void)open;
  • Declaration

    Objective-C

    - (XPSDKVideoConnectionMethod) method;
  • Declaration

    Objective-C

    - (void) uploadFromBuffer: (CVImageBufferRef) imageBuffer;
  • Declaration

    Objective-C

    - (void) enableLocation: (BOOL) enabled;