public static class INetStream.ListenerAdapter extends java.lang.Object implements INetStream.IListener
ListenerAdapter
- INetStream.IListener
adapter.Constructor and Description |
---|
INetStream.ListenerAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onAsyncError(INetStream source,
java.lang.String message,
java.lang.Exception e)
Notifies about an exception that is thrown asynchronously (from native asynchronous code).
|
void |
onCuePoint(INetStream source,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Invoked when an embedded cue point is reached while playing an FLV file.
|
void |
onIOError(INetStream source,
java.lang.String message)
Notifies about an input/output error occured that causes a network operation to fail.
|
void |
onMetaData(INetStream source,
java.util.Map<java.lang.String,java.lang.Object> info)
Notifies when descriptive information embedded in the FLV file being played is received.
|
void |
onNetStatus(INetStream source,
java.util.Map<java.lang.String,java.lang.Object> info)
Notifies about the status info change.
|
void |
onPlayStatus(INetStream source,
java.util.Map<java.lang.String,java.lang.Object> info)
Notifies that NetStream object has completely played a stream.
|
public void onAsyncError(INetStream source, java.lang.String message, java.lang.Exception e)
INetStream.IListener
Note: This method is invoked in the Dispatch-Thread. Process it quickly.
onAsyncError
in interface INetStream.IListener
source
- async message sourcemessage
- async messagee
- thrown exceptionpublic void onCuePoint(INetStream source, java.util.Map<java.lang.String,java.lang.Object> parameters)
INetStream.IListener
Note: This method is invoked in the Dispatch-Thread. Process it quickly.
onCuePoint
in interface INetStream.IListener
source
- cue-point sourceparameters
- associative array of name/value pair strings specified for this cue point
Some parameters:
"name" - name given to the cue point when it was embedded in the FLV file
"time" - time in seconds at which the cue point occurred in the video file during playback
"type" - type of cue point that was reached, either "navigation" or "event"
public void onIOError(INetStream source, java.lang.String message)
INetStream.IListener
Note: This method is invoked in the Dispatch-Thread. Process it quickly.
onIOError
in interface INetStream.IListener
source
- I/O error sourcemessage
- I/O error messagepublic void onMetaData(INetStream source, java.util.Map<java.lang.String,java.lang.Object> info)
INetStream.IListener
Note: This method is invoked in the Dispatch-Thread. Process it quickly.
onMetaData
in interface INetStream.IListener
source
- meta-data sourceinfo
- meta-data infopublic void onNetStatus(INetStream source, java.util.Map<java.lang.String,java.lang.Object> info)
INetStream.IListener
Note: This method is invoked in the Dispatch-Thread. Process it quickly.
onNetStatus
in interface INetStream.IListener
source
- net status sourceinfo
- status infopublic void onPlayStatus(INetStream source, java.util.Map<java.lang.String,java.lang.Object> info)
INetStream.IListener
Note: This method is invoked in the Dispatch-Thread. Process it quickly.
onPlayStatus
in interface INetStream.IListener
source
- play-status sourceinfo
- play status info