LocalVideoStream Class
- java.
lang. Object - CallVideoStream
- OutgoingVideoStream
- com.
azure. android. communication. calling. LocalVideoStream
- com.
public class LocalVideoStream extends OutgoingVideoStream
Local video stream information
Constructor Summary
Constructor | Description |
---|---|
LocalVideoStream(VideoDeviceInfo camera, android.content.Context context) |
Creates a new instance with a camera device and context parameter |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addOnStateChangedListener(VideoStreamStateChangedListener listener)
Adds the specified listener to receive OnStateChanged events. Registers the event notifying the application that the OutgoingVideoStreamState has changed. |
<TLocalVideoStreamFeature extends Local |
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. |
Video |
getSource()
Video device to use as source for local video. |
boolean |
isSending()
Sets to True when the local video stream is being sent on a call. |
void |
removeOnStateChangedListener(VideoStreamStateChangedListener listener)
Removes the specified listener to receive OnStateChanged events. Registers the event notifying the application that the OutgoingVideoStreamState has changed. |
CompletableFuture<Void> |
switchSource(final VideoDeviceInfo camera)
Set a new video source |
Inherited Members
Constructor Details
LocalVideoStream
public LocalVideoStream(VideoDeviceInfo camera, android.content.Context context)
Creates a new instance with a camera device and context parameter
Parameters:
Method Details
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.
Parameters:
feature
public
Retrieves an initialized and memoized Feature object with extended API. Check the object Features.* for all available extended call features in this package.
Parameters:
getSource
public VideoDeviceInfo getSource()
Video device to use as source for local video.
isSending
public boolean isSending()
Sets to True when the local video stream is being sent on a call.
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.
Parameters:
switchSource
public CompletableFuture
Set a new video source
Parameters: