Class VideoTranslatorMediaDevice

    • Constructor Detail

      • VideoTranslatorMediaDevice

        public VideoTranslatorMediaDevice​(MediaDeviceImpl device)
        Initializes a new VideoTranslatorMediaDevice which enables a specific MediaDevice to be used in video conferencing implemented with an RTP translator.
        Parameters:
        device - the MediaDevice which the new instance is to enable to be used in video conferencing implemented with an RTP translator
    • Method Detail

      • getDirection

        public MediaDirection getDirection()
        Returns the MediaDirection supported by this device.
        Specified by:
        getDirection in interface MediaDevice
        Returns:
        MediaDirection.SENDONLY if this is a read-only device, MediaDirection.RECVONLY if this is a write-only device and MediaDirection.SENDRECV if this MediaDevice can both capture and render media
        See Also:
        MediaDevice.getDirection()
      • getFormat

        public MediaFormat getFormat()
        Returns the MediaFormat that this device is currently set to use when capturing data.
        Specified by:
        getFormat in interface MediaDevice
        Returns:
        the MediaFormat that this device is currently set to provide media in.
        See Also:
        MediaDevice.getFormat()
      • getMediaType

        public org.jitsi.utils.MediaType getMediaType()
        Returns the MediaType that this device supports.
        Specified by:
        getMediaType in interface MediaDevice
        Returns:
        MediaType.AUDIO if this is an audio device or MediaType.VIDEO in case of a video device
        See Also:
        MediaDevice.getMediaType()
      • videoAdded

        public void videoAdded​(VideoEvent event)
        Notifies that a visual Component representing video has been added to the provider this listener has been added to. Forwards event, to each of the managed MediaStreamMediaDeviceSession instances. The event is expected to come from this.deviceSession, since this is registered there as a VideoListener.
        Specified by:
        videoAdded in interface VideoListener
        Parameters:
        event - a VideoEvent describing the added visual Component representing video and the provider it was added into
      • videoRemoved

        public void videoRemoved​(VideoEvent event)
        Notifies that a visual Component representing video has been removed from the provider this listener has been added to. Forwards event, to each of the managed MediaStreamMediaDeviceSession instances. The event is expected to come from this.deviceSession, since this is registered there as a VideoListener.
        Specified by:
        videoRemoved in interface VideoListener
        Parameters:
        event - a VideoEvent describing the removed visual Component representing video and the provider it was removed from
      • videoUpdate

        public void videoUpdate​(VideoEvent event)
        Notifies about an update to a visual Component representing video. Forwards event, to each of the managed MediaStreamMediaDeviceSession instances. The event is expected to come from this.deviceSession, since this is registered there as a VideoListener.
        Specified by:
        videoUpdate in interface VideoListener
        Parameters:
        event - a VideoEvent describing the visual Component related to the update and the details of the specific update