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 configurationReturn Value
WCSSession
session -
Get access to local media.
Throws
Declaration
Swift
public static func getMediaAccess(_ constraints: FPWCSApi2MediaConstraints, _ display: RTCVideoRenderer) throws
Parameters
constraints
FPWCSAPI2MediaConstraints
media constraintsdisplay
RTCVideoRenderer
View local media should be displayed inReturn 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