Package org.linphone.core
Interface VideoSourceDescriptor
public interface VideoSourceDescriptor
Object that is used to describe a video source.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Instantiate a new video source descriptor with values from source.getCall()
Gets the call of aVideoSourceDescriptor
.Gets the camera id of aVideoSourceDescriptor
.getImage()
Gets the image path of aVideoSourceDescriptor
.long
Gets the native pointer used by this class to make native method calls.getType()
Gets the type of aVideoSourceDescriptor
.Gets the object stored in this object user's datavoid
Sets the source of aVideoSourceDescriptor
with a call.void
setCameraId
(String cameraId) Sets the source of aVideoSourceDescriptor
with a camera id.void
Sets the source of aVideoSourceDescriptor
with an image path.void
setUserData
(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getCall
- Returns:
- The
Call
of the video source descriptor if it's type is
LinphoneVideoSourceCall, null otherwise.
-
setCall
Sets the source of aVideoSourceDescriptor
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 withCore.setMediaResourceMode(org.linphone.core.MediaResourceMode)
.- Parameters:
call
- TheCall
that will be used as a video source.
-
getCameraId
- Returns:
- The camera id of the video source descriptor if it's type is
LinphoneVideoSourceCamera, null otherwise.
-
setCameraId
- Parameters:
cameraId
- The camera id that will be used as a video source.
-
getImage
- Returns:
- The image path of the video source descriptor if it's type is
LinphoneVideoSourceImage, null otherwise.
-
setImage
- Parameters:
imagePath
- The image path that will be used as a video source.
-
getType
VideoSourceType getType()- Returns:
- The
VideoSourceType
corresponding to this video source
descriptor.
-
clone
Instantiate a new video source descriptor with values from source.
- Returns:
- The newly created
VideoSourceDescriptor
object.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data
- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-