com.smaxe.me.uv.client
Class NetStream.ListenerAdapter

java.lang.Object
  extended by com.smaxe.me.uv.client.NetStream.ListenerAdapter
All Implemented Interfaces:
NetStream.IListener
Enclosing class:
NetStream

public static class NetStream.ListenerAdapter
extends java.lang.Object
implements NetStream.IListener

ListenerAdapter - NetStream.IListener adapter.


Constructor Summary
NetStream.ListenerAdapter()
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetStream.ListenerAdapter

public NetStream.ListenerAdapter()
Constructor.

Method Detail

onAsyncError

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

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

Specified by:
onAsyncError in interface NetStream.IListener
Parameters:
source - async message source
message - async message
e - thrown exception

onCuePoint

public void onCuePoint(NetStream source,
                       java.util.Hashtable info)
Description copied from interface: NetStream.IListener
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.

Specified by:
onCuePoint in interface NetStream.IListener
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"


onIOError

public void onIOError(NetStream source,
                      java.lang.String message)
Description copied from interface: NetStream.IListener
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.

Specified by:
onIOError in interface NetStream.IListener
Parameters:
source - I/O error source
message - I/O error message

onMetaData

public void onMetaData(NetStream source,
                       java.util.Hashtable info)
Description copied from interface: NetStream.IListener
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.

Specified by:
onMetaData in interface NetStream.IListener
Parameters:
source - meta-data source
info - meta-data info

onNetStatus

public void onNetStatus(NetStream source,
                        java.util.Hashtable info)
Description copied from interface: NetStream.IListener
Notifies about the status info change.

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

Specified by:
onNetStatus in interface NetStream.IListener
Parameters:
source - net status source
info - status info

onPlayStatus

public void onPlayStatus(NetStream source,
                         java.util.Hashtable info)
Description copied from interface: NetStream.IListener
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.

Specified by:
onPlayStatus in interface NetStream.IListener
Parameters:
source - play-status source
info - play status info