com.smaxe.uv.client
Interface INetStream.IListener

All Known Implementing Classes:
INetStream.ListenerAdapter
Enclosing interface:
INetStream

public static interface INetStream.IListener

IListener - NetStream listener.


Method Summary
 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.
 

Method Detail

onAsyncError

void onAsyncError(INetStream 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(INetStream 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(INetStream source,
                 java.util.Map<java.lang.String,java.lang.Object> 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(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. 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
parameters - 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(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.

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

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

onPlayStatus

void onPlayStatus(INetStream source,
                  java.util.Map<java.lang.String,java.lang.Object> 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