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.Gets the screen sharing description of aVideoSourceDescriptor.Gets the screen sharing type of aVideoSourceDescriptor.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.voidsetScreenSharing(VideoSourceScreenSharingType type, Object nativeData) Sets the source of aVideoSourceDescriptoras screen sharing.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.
-
getScreenSharing
- Returns:
- The native screen sharing description
-
getScreenSharingType
VideoSourceScreenSharingType getScreenSharingType()- Returns:
- The
VideoSourceType.ScreenSharingType corresponding to this
video source descriptor.
-
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.
-
setScreenSharing
Sets the source of aVideoSourceDescriptoras screen sharing.
native_data depends on the type and the current platform:
native_data depends on the type and the current platform:
-Linux : uintptr_t The index of the screen ordered by XineramaQueryScreens.
-Mac : CGDirectDisplayID The display identification that can be retrieved from
SCShareableContent.
-Windows : uintptr_t The index of the screen ordered by
IDXGIAdapter->EnumOutputs.
-Linux : Window The Window object that can be retrieved from XQueryPointer.
-Mac : CGWindowID The window identification that can be retrieved from NSEvent.
-Windows : HWND The window handle that can be retrieved from WindowFromPoint.
-not yet supported.- Parameters:
type- TheVideoSourceScreenSharingTypetype of native_data.nativeData- The screen handle that will be used as a video source.
-
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()
-