Class DataSource

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

    public class DataSource
    extends AbstractVideoPullBufferCaptureDevice
    Implements a CaptureDevice which provides a fading animation from white to black to white... in form of video.
    Author:
    Thomas Kuntz
    • Constructor Detail

      • DataSource

        public DataSource()
    • Method Detail

      • createStream

        protected VideoGreyFadingStream 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. Implements AbstractPushBufferCaptureDevice.createStream(int, 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