Class DataSource

  • All Implemented Interfaces:
    javax.media.Controls, javax.media.Duration, javax.media.protocol.CaptureDevice, javax.media.protocol.Controls

    public class DataSource
    extends AbstractPullBufferCaptureDevice
    Implements CaptureDevice and DataSource using the native PulseAudio API/library.
    Author:
    Lyubomir Marinov
    • Constructor Detail

      • DataSource

        public DataSource()
        Initializes a new DataSource instance.
    • Method Detail

      • createStream

        protected org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource.PulseAudioStream createStream​(int streamIndex,
                                                                                                                    javax.media.control.FormatControl formatControl)
        Creates a new PullBufferStream which is to be at a specific zero-based index in the list of streams of this PullBufferDataSource. The Format-related information of the new instance is to be abstracted by a specific FormatControl.
        Specified by:
        createStream in class AbstractPullBufferCaptureDevice
        Parameters:
        streamIndex - the zero-based index of the PullBufferStream in the list of streams of this PullBufferDataSource
        formatControl - the FormatControl which is to abstract the Format-related information of the new instance
        Returns:
        a new PullBufferStream which is to be at the specified streamIndex in the list of streams of this PullBufferDataSource and which has its Format-related information abstracted by the specified formatControl
      • doDisconnect

        protected void doDisconnect()
        Closes the connection to the media source specified by the MediaLocator of this DataSource. Allows extenders to override and be sure that there will be no request to close a connection if the connection has not been opened yet.
        Overrides:
        doDisconnect in class AbstractPullBufferCaptureDevice