sk.baka.ambient
Class PlaylistPlayerErrorHandler

java.lang.Object
  extended by sk.baka.ambient.PlaylistPlayerErrorHandler

final class PlaylistPlayerErrorHandler
extends Object

Handles errors received by MediaPlayer and tries to recover from them.

Author:
Martin Vysny

Constructor Summary
PlaylistPlayerErrorHandler(PlaylistPlayer owner)
          Creates new error handler.
 
Method Summary
(package private)  void cancelLocationResolving()
          Cancels all location resolving activities.
 void close()
          Closes this handler and frees all resources.
(package private)  void handleError(String error, boolean missing, TrackOriginEnum origin)
          Handles the playback error.
(package private)  void handleSuccess()
          A track playback was initiated successfully.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaylistPlayerErrorHandler

PlaylistPlayerErrorHandler(PlaylistPlayer owner)
Creates new error handler.

Parameters:
owner - owner player.
Method Detail

handleError

void handleError(String error,
                 boolean missing,
                 TrackOriginEnum origin)
Handles the playback error.

Parameters:
error - the error message from the player.
missing - if true then the error occurred because the file is missing.
origin - the track origin

handleSuccess

void handleSuccess()
A track playback was initiated successfully.


cancelLocationResolving

void cancelLocationResolving()
Cancels all location resolving activities.


close

public void close()
Closes this handler and frees all resources.



Copyright © 2007-2008. All Rights Reserved.