com.smaxe.me.uv.client
Interface NetStream.IListener

All Known Implementing Classes:
NetStream.ListenerAdapter
Enclosing class:
NetStream

public static interface NetStream.IListener

IListener - NetStream listener.


Method Summary
 void onAsyncError(NetStream source, java.lang.String message, java.lang.Exception e)
          Notifies about an exception that is thrown asynchronously (from native asynchronous code).
 void onCuePoint(NetStream source, java.util.Hashtable info)
          Invoked when an embedded cue point is reached while playing an FLV file.
 void onIOError(NetStream source, java.lang.String message)
          Notifies about an input/output error occured that causes a network operation to fail.
 void onMetaData(NetStream source, java.util.Hashtable info)
          Notifies when descriptive information embedded in the FLV file being played is received.
 void onNetStatus(NetStream source, java.util.Hashtable info)
          Notifies about the status info change.
 void onPlayStatus(NetStream source, java.util.Hashtable info)
          Notifies that NetStream object has completely played a stream.
 

Method Detail

onAsyncError

void onAsyncError(NetStream source,
                  java.lang.String message,
                  java.lang.Exception e)
Notifies about an exception that is thrown asynchronously (from native asynchronous code).

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Parameters:
source - async message source
message - async message
e - thrown exception

onIOError

void onIOError(NetStream source,
               java.lang.String message)
Notifies about an input/output error occured that causes a network operation to fail.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Parameters:
source - I/O error source
message - I/O error message

onNetStatus

void onNetStatus(NetStream source,
                 java.util.Hashtable info)
Notifies about the status info change.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Parameters:
source - net status source
info - status info

onCuePoint

void onCuePoint(NetStream source,
                java.util.Hashtable info)
Invoked when an embedded cue point is reached while playing an FLV file. You can use this handler to trigger actions in your code when the video reaches a specific cue point, which lets you synchronize other actions in your application with video playback events.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Parameters:
source - cue-point source
info - 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"


onMetaData

void onMetaData(NetStream source,
                java.util.Hashtable info)
Notifies when descriptive information embedded in the FLV file being played is received.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Parameters:
source - meta-data source
info - meta-data info

onPlayStatus

void onPlayStatus(NetStream source,
                  java.util.Hashtable info)
Notifies that NetStream object has completely played a stream. This handler returns information objects that provide information in addition to what's returned by the netStatus event. You can use this handler to trigger actions in your code when a NetStream object has switched from one stream to another stream in a playlist (as indicated by the information object NetStream.Play.Switch) or when a NetStream object has played to the end (as indicated by the information object NetStream.Play.Complete). To respond to this event, you must create a function to process the information object sent by the server.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Parameters:
source - play-status source
info - play status info