LocalVideoStream Class

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 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.

VideoDeviceInfo 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:

camera - Camera device to use for the local video stream
context - Application context object

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:

listener

feature

public TLocalVideoStreamFeature feature(LocalVideoStreamFeatureFactory 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.

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:

listener

switchSource

public CompletableFuture switchSource(final VideoDeviceInfo camera)

Set a new video source

Parameters:

camera - The new video source

Applies to