com.smaxe.uv.client
Class INetStream.ListenerAdapter

java.lang.Object
  extended by com.smaxe.uv.client.INetStream.ListenerAdapter
All Implemented Interfaces:
INetStream.IListener
Enclosing interface:
INetStream

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

ListenerAdapter - INetStream.IListener adapter.


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

Constructor Detail

INetStream.ListenerAdapter

public INetStream.ListenerAdapter()
Constructor.

Method Detail

onAsyncError

public void onAsyncError(INetStream source,
                         java.lang.String message,
                         java.lang.Exception e)
Description copied from interface: INetStream.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 INetStream.IListener
Parameters:
source - async message source
message - async message
e - thrown exception

onCuePoint

public void onCuePoint(INetStream source,
                       java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: INetStream.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 INetStream.IListener
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"


onIOError

public void onIOError(INetStream source,
                      java.lang.String message)
Description copied from interface: INetStream.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 INetStream.IListener
Parameters:
source - I/O error source
message - I/O error message

onMetaData

public void onMetaData(INetStream source,
                       java.util.Map<java.lang.String,java.lang.Object> info)
Description copied from interface: INetStream.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 INetStream.IListener
Parameters:
source - meta-data source
info - meta-data info

onNetStatus

public void onNetStatus(INetStream source,
                        java.util.Map<java.lang.String,java.lang.Object> info)
Description copied from interface: INetStream.IListener
Notifies about the status info change.

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

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

onPlayStatus

public void onPlayStatus(INetStream source,
                         java.util.Map<java.lang.String,java.lang.Object> info)
Description copied from interface: INetStream.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 INetStream.IListener
Parameters:
source - play-status source
info - play status info