public class Main extends StreamPlayer implements StreamPlayerListener
| Constructor and Description |
|---|
Main()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
opened(java.lang.Object dataSource,
java.util.Map<java.lang.String,java.lang.Object> properties)
It is called when the StreamPlayer open(Object object) method is called.
|
void |
progress(int nEncodedBytes,
long microsecondPosition,
byte[] pcmData,
java.util.Map<java.lang.String,java.lang.Object> properties)
Is called several times per second when StreamPlayer run method is
running.
|
void |
statusUpdated(StreamPlayerEvent streamPlayerEvent)
Is called every time the status of the StreamPlayer changes.
|
addStreamPlayerListener, call, getBalance, getDurationInSeconds, getEncodedStreamPosition, getGainValue, getLineBufferSize, getLineCurrentBufferSize, getMaximumGain, getMinimumGain, getMixers, getMute, getPan, getPositionByte, getPrecision, getSourceDataLine, getSpeedFactor, getStatus, getTotalBytes, isOpened, isPaused, isPausedOrPlaying, isPlaying, isSeeking, isStopped, isUnknown, open, pause, play, removeStreamPlayerListener, reset, resume, seekBytes, seekSeconds, seekTo, setBalance, setEqualizer, setEqualizerKey, setGain, setLineBufferSize, setMute, setPan, setSpeedFactor, stoppublic void opened(java.lang.Object dataSource,
java.util.Map<java.lang.String,java.lang.Object> properties)
StreamPlayerListeneropened in interface StreamPlayerListenerdataSource - the data sourceproperties - the propertiespublic void progress(int nEncodedBytes,
long microsecondPosition,
byte[] pcmData,
java.util.Map<java.lang.String,java.lang.Object> properties)
StreamPlayerListenerprogress in interface StreamPlayerListenernEncodedBytes - the n encoded bytesmicrosecondPosition - the microsecond positionpcmData - the pcm dataproperties - the propertiespublic void statusUpdated(StreamPlayerEvent streamPlayerEvent)
StreamPlayerListenerstatusUpdated in interface StreamPlayerListenerstreamPlayerEvent - the eventpublic static void main(java.lang.String[] args)
Copyright © 2019. All rights reserved.