Class LocalVideoStream


  • public final class LocalVideoStream
    extends OutgoingVideoStream
    Local video stream information
    • 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 stream
        context - 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() instead
        Sets 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.