WCSApi2

public class WCSApi2

Undocumented

  • Create new session.

    Throws

    Declaration

    Swift

    public static func createSession(_ options: FPWCSApi2SessionOptions) throws -> WCSSession

    Parameters

    options

    FPWCSApi2SessionOptions object with session configuration

    Return Value

    WCSSession session

  • Get access to local media.

    Throws

    Declaration

    Swift

    public static func getMediaAccess(_ constraints: FPWCSApi2MediaConstraints, _ display: RTCVideoRenderer) throws

    Parameters

    constraints

    FPWCSAPI2MediaConstraints media constraints

    display

    RTCVideoRenderer View local media should be displayed in

    Return Value

    BOOL false if error occured otherwise true

  • Release local media.

    Declaration

    Swift

    public static func releaseLocalMedia(display: RTCVideoRenderer) -> Bool

    Return Value

    Bool true if media released *

  • Get local device list

    Declaration

    Swift

    public static func getMediaDevices() -> FPWCSApi2MediaDeviceList

    Return Value

    FPWCSApi2MediaDeviceList device list