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.longGets 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 datavoidSets the source of aVideoSourceDescriptorwith a call.voidsetCameraId(String cameraId) Sets the source of aVideoSourceDescriptorwith a camera id.voidSets the source of aVideoSourceDescriptorwith an image path.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getCall
- Returns:
- The
Callof the video source descriptor if it's type is
LinphoneVideoSourceCall, null otherwise.
-
setCall
Sets the source of aVideoSourceDescriptorwith a call.
Setting aVideoSourceDescriptorwith 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- TheCallthat 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
VideoSourceTypecorresponding to this video source
descriptor.
-
clone
Instantiate a new video source descriptor with values from source.
- Returns:
- The newly created
VideoSourceDescriptorobject.
-
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()
-