org.mobicents.media.server.impl

Class AbstractSource

    • Field Detail

      • duration

        protected long duration
    • Constructor Detail

      • AbstractSource

        public AbstractSource(String name,              PriorityQueueScheduler scheduler,              int queueNumber)
        Creates new instance of source with specified name.
        Parameters:
        name - the name of the source to be created.
    • Method Detail

      • wakeup

        public void wakeup()
        Restores synchronization
      • connect

        protected void connect(AbstractSink sink)
        (Non Java-doc).
        See Also:
        org.mobicents.media.MediaSource#connect(org.mobicents.media.MediaSink)
      • disconnect

        protected void disconnect()
        (Non Java-doc).
        See Also:
        org.mobicents.media.MediaSource#disconnect(org.mobicents.media.server.spi.io.Pipe)
      • isConnected

        public boolean isConnected()
        (Non Java-doc).
        Specified by:
        isConnected in interface MediaSource
        See Also:
        org.mobicents.media.MediaSink#isConnected().
      • evolve

        public abstract Frame evolve(long timestamp)
        This method must be overriden by concrete media source. T he media have to fill buffer with media data and attributes.
        Parameters:
        buffer - the buffer object for media.
        sequenceNumber - the number of timer ticks from the begining.
      • started

        protected void started()
        Sends notification that media processing has been started.
      • failed

        protected void failed(Exception e)
        Sends failure notification.
        Parameters:
        e - the exception caused failure.
      • completed

        protected void completed()
        Sends notification that signal is completed.
      • stopped

        protected void stopped()
        Called when source is stopped by request
      • getPacketsTransmitted

        public long getPacketsTransmitted()
        (Non Java-doc).
        Specified by:
        getPacketsTransmitted in interface MediaSource
        See Also:
        org.mobicents.media.MediaSource#getPacketsReceived()
      • report

        public String report()

Copyright © 2016 TeleStax, Inc.. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14