Class LocalVideoStream
- Object
-
- CallVideoStream
-
- OutgoingVideoStream
-
- LocalVideoStream
-
public final class LocalVideoStream extends OutgoingVideoStream
Local video stream information
-
-
Constructor Summary
Constructors Constructor Description LocalVideoStream(VideoDeviceInfo camera, Context context)
Creates a new instance with a camera device and context parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addOnStateChangedListener(VideoStreamStateChangedListener listener)
Adds the specified listener to receive OnStateChanged events.<TLocalVideoStreamFeature extends LocalVideoStreamFeature>
TLocalVideoStreamFeaturefeature(LocalVideoStreamFeatureFactory<TLocalVideoStreamFeature> factory)
Retrieves an initialized and memoized Feature object with extended API.VideoDeviceInfo
getSource()
Video device to use as source for local video.boolean
isSending()
Deprecated.Use RemoteVideoStream.getState() insteadvoid
removeOnStateChangedListener(VideoStreamStateChangedListener listener)
Removes the specified listener to receive OnStateChanged events.CompletableFuture<Void>
switchSource(VideoDeviceInfo camera)
Set a new video source-
Methods inherited from class CallVideoStream
finalize, getDirection, getId, getMediaStreamType, getSourceType, getState, getType
-
-
-
-
Constructor Detail
-
LocalVideoStream
public LocalVideoStream(VideoDeviceInfo camera, Context context)
Creates a new instance with a camera device and context parameter- Parameters:
camera
- Camera device to use for the local video streamcontext
- Application context object
-
-
Method Detail
-
getSource
public VideoDeviceInfo getSource()
Video device to use as source for local video.
-
isSending
@Deprecated public boolean isSending()
Deprecated.Use RemoteVideoStream.getState() insteadSets to True when the local video stream is being sent on a call.
-
addOnStateChangedListener
public void addOnStateChangedListener(VideoStreamStateChangedListener listener)
Adds the specified listener to receive OnStateChanged events. Registers the event notifying the application that the OutgoingVideoStreamState has changed.
-
removeOnStateChangedListener
public void removeOnStateChangedListener(VideoStreamStateChangedListener listener)
Removes the specified listener to receive OnStateChanged events. Registers the event notifying the application that the OutgoingVideoStreamState has changed.
-
switchSource
public CompletableFuture<Void> switchSource(VideoDeviceInfo camera)
Set a new video source- Parameters:
camera
- The new video source- Returns:
-
feature
public <TLocalVideoStreamFeature extends LocalVideoStreamFeature> TLocalVideoStreamFeature feature(LocalVideoStreamFeatureFactory<TLocalVideoStreamFeature> factory)
Retrieves an initialized and memoized Feature object with extended API. Check the object Features.* for all available extended call features in this package.- Parameters:
factory
- The factory for the local video stream feature constructor that provides an extended API.
-
-