VideoSourceDescriptor
public class VideoSourceDescriptor : LinphoneObject
Object that is used to describe a video source.
-
Undocumented
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> VideoSourceDescriptor
-
Undocumented
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Sets the source of a
VideoSourceDescriptor
with a call. Setting aVideoSourceDescriptor
with a call will require the lib to have two calls running at the same time. To do so the media resource mode has to be set to LinphoneSharedMediaResources with Core.setMediaResourceMode().Declaration
Swift
public var call: Call? { get set }
Parameters
call
The
Call
that will be used as a video source.
Gets the call of aVideoSourceDescriptor
.Return Value
The
Call
of the video source descriptor if it’s type is LinphoneVideoSourceCall, nil otherwise. -
Sets the source of a
VideoSourceDescriptor
with a camera id.Declaration
Swift
public var cameraId: String { get set }
Parameters
cameraId
The camera id that will be used as a video source.
Gets the camera id of aVideoSourceDescriptor
.Return Value
The camera id of the video source descriptor if it’s type is LinphoneVideoSourceCamera, nil otherwise.
-
Sets the source of a
VideoSourceDescriptor
with an image path.Declaration
Swift
public var image: String { get set }
Parameters
imagePath
The image path that will be used as a video source.
Gets the image path of aVideoSourceDescriptor
.Return Value
The image path of the video source descriptor if it’s type is LinphoneVideoSourceImage, nil otherwise.
-
Gets the type of a
VideoSourceDescriptor
.Declaration
Swift
public var type: VideoSourceType { get }
Return Value
The
VideoSourceType
corresponding to this video source descriptor. -
Instantiate a new video source descriptor with values from source.
Declaration
Swift
public func clone() -> VideoSourceDescriptor?
Return Value
The newly created
VideoSourceDescriptor
object.