Class AudioSilenceMediaDevice

  • All Implemented Interfaces:
    MediaDevice

    public class AudioSilenceMediaDevice
    extends AudioMediaDeviceImpl
    Implements a MediaDevice which provides silence in the form of audio media and does not play back any (audio) media (because Jitsi Videobridge is a server-side technology).
    Author:
    Lyubomir Marinov, Boris Grozev
    • Constructor Detail

      • AudioSilenceMediaDevice

        public AudioSilenceMediaDevice​(boolean clockOnly)
        Initializes a new AudioSilenceMediaDevice instance.
        Parameters:
        clockOnly - the value to set to clockOnly.
    • Method Detail

      • createCaptureDevice

        protected javax.media.protocol.CaptureDevice createCaptureDevice()
        Creates the JMF CaptureDevice this instance represents and provides an implementation of MediaDevice for. Overrides the super implementation to initialize a CaptureDevice without asking FMJ to initialize one for a CaptureDeviceInfo.
        Overrides:
        createCaptureDevice in class AudioMediaDeviceImpl
        Returns:
        the JMF CaptureDevice this instance represents and provides an implementation of MediaDevice for; null if the creation fails
      • createPlayer

        protected javax.media.Processor createPlayer​(javax.media.protocol.DataSource dataSource)
        Initializes a new Processor instance which is to be used to play back media on this MediaDevice. Allows extenders to, for example, disable the playback on this MediaDevice by completely overriding and returning null. Overrides the super implementation to disable the very playback because Jitsi Videobridge is a server-side technology.
        Overrides:
        createPlayer in class AbstractMediaDevice
        Parameters:
        dataSource - the DataSource which is to be played back by the new Processor instance
        Returns:
        a new Processor instance which is to be used to play back the media provided by the specified dataSource or null if the specified dataSource is to not be played back
      • createSession

        public MediaDeviceSession createSession()
        Creates a new MediaDeviceSession instance which is to represent the use of this MediaDevice by a MediaStream. Overrides the super implementation to initialize a MediaDeviceSession which disables the very playback because Jitsi Videobridge is a server-side technology.
        Overrides:
        createSession in class AbstractMediaDevice
        Returns:
        a new MediaDeviceSession instance which is to represent the use of this MediaDevice by a MediaStream