MediaOption
public struct MediaOption
A data type represents the media options of a call.
Since
1.2.0-
Constructs an audio only media option.
Since
1.2.0Declaration
Swift
public static func audioOnly() -> MediaOption
-
Constructs an audio and video media option with video render views.
Since
1.2.0Declaration
Swift
public static func audioVideo(local: MediaRenderView, remote: MediaRenderView) -> MediaOption
-
Constructs an audio and video media option with optional render views. The render views can be set after call is connected.
Since
1.3.0Declaration
Swift
public static func audioVideo(renderViews: (local:MediaRenderView,remote:MediaRenderView)? = nil) -> MediaOption
-
Constructs an audio, video, and screen share media option with optional render views. The render views can be set after call is connected.
Since
1.3.0Declaration
Swift
public static func audioVideoScreenShare(video: (local:MediaRenderView,remote:MediaRenderView)? = nil, screenShare: MediaRenderView? = nil) -> MediaOption
-
Constructs an audio, video,receive and send screen share media option with optional render views. The render views can be set after call is connected.
Since
1.4.0Declaration
Swift
@available(iOS 11.2, *) public static func audioVideoScreenShare(video: (local:MediaRenderView,remote:MediaRenderView)? = nil, screenShare: MediaRenderView? = nil, applicationGroupIdentifier: String) -> MediaOption
-
A local unique identifier of a media options.
Since
1.2.0Declaration
Swift
public var uuid: UUID? { get set }