public class AudioInput extends AbstractSink
| Constructor and Description |
|---|
AudioInput(int inputId,
int packetSize)
Creates new stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
int |
getInputId() |
boolean |
isEmpty()
Indicates the state of the input buffer.
|
void |
onMediaTransfer(Frame frame)
This methos is called when new portion of media arrives.
|
Frame |
poll()
Retrieves frame from the input buffer.
|
void |
recycle()
Recycles input stream
|
void |
resetBuffer() |
failed, getBytesReceived, getPacketsReceived, isStarted, perform, report, reset, start, started, stop, stoppedgetId, getNamepublic int getInputId()
public void activate()
activate in interface Componentactivate in class AbstractSinkpublic void deactivate()
deactivate in interface Componentdeactivate in class AbstractSinkpublic void onMediaTransfer(Frame frame) throws IOException
AbstractSinkonMediaTransfer in class AbstractSinkIOExceptionpublic boolean isEmpty()
public Frame poll()
public void recycle()
public void resetBuffer()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.