org.mobicents.media
Interface MediaSink

All Superinterfaces:
Component, Serializable
All Known Subinterfaces:
DtmfDetector, DtmfDetector, Recorder, ToneDetector

public interface MediaSink
extends Component

Implements the media consumer.

Author:
Oleg Kulikov, baranowb

Method Summary
 long getBytesReceived()
          Shows the number of bytes received by this sink since last start;
 long getPacketsReceived()
          Shows the number of packets received by this medis sink since last start.
 boolean isStarted()
          Gets true if component is able to receive media.
 void perform(Frame frame)
          Allows to transfer frame from media source to media sink
 
Methods inherited from interface org.mobicents.media.Component
activate, clearEndpoint, deactivate, getEndpoint, getId, getName, reset, setEndpoint
 

Method Detail

isStarted

boolean isStarted()
Gets true if component is able to receive media.

Returns:
true if component is able to receive media.

getPacketsReceived

long getPacketsReceived()
Shows the number of packets received by this medis sink since last start.

Returns:
the number of packets.

getBytesReceived

long getBytesReceived()
Shows the number of bytes received by this sink since last start;

Returns:
the number of bytes.

perform

void perform(Frame frame)
Allows to transfer frame from media source to media sink



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