Class BufferDataSource

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

    public class BufferDataSource
    extends javax.media.protocol.PullBufferDataSource
    A DataSource for turning JMF Buffers into movies. See the Java Media Framework documentation for details.
    Author:
    Nick Collier
    • Constructor Detail

      • BufferDataSource

        public BufferDataSource​(javax.media.format.RGBFormat format)
    • Method Detail

      • addBuffer

        public void addBuffer​(javax.media.Buffer buf)
      • cleanUp

        public void cleanUp()
      • setLocator

        public void setLocator​(javax.media.MediaLocator source)
        Overrides:
        setLocator in class javax.media.protocol.DataSource
      • getLocator

        public javax.media.MediaLocator getLocator()
        Overrides:
        getLocator in class javax.media.protocol.DataSource
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in class javax.media.protocol.DataSource
      • connect

        public void connect()
        Specified by:
        connect in class javax.media.protocol.DataSource
      • disconnect

        public void disconnect()
        Specified by:
        disconnect in class javax.media.protocol.DataSource
      • start

        public void start()
        Specified by:
        start in class javax.media.protocol.DataSource
      • stop

        public void stop()
        Specified by:
        stop in class javax.media.protocol.DataSource
      • getStreams

        public javax.media.protocol.PullBufferStream[] getStreams()
        Specified by:
        getStreams in class javax.media.protocol.PullBufferDataSource
      • getDuration

        public javax.media.Time getDuration()
        Specified by:
        getDuration in interface javax.media.Duration
        Specified by:
        getDuration in class javax.media.protocol.DataSource
      • getControls

        public Object[] getControls()
        Specified by:
        getControls in interface javax.media.Controls
        Specified by:
        getControls in class javax.media.protocol.DataSource
      • getControl

        public Object getControl​(String type)
        Specified by:
        getControl in interface javax.media.Controls
        Specified by:
        getControl in class javax.media.protocol.DataSource