public QueuedMediaPlayer(Context context){
  mContext=context;
  mCurrentPlayer=new ManagedMediaPlayer();
  mNextPlayer=new ManagedMediaPlayer();
  mNextPlayer.setAudioSessionId(mCurrentPlayer.getAudioSessionId());
  mCurrentPlayer.setOnPreparedListener(this);
  mCurrentPlayer.setOnErrorListener(this);
  mCurrentPlayer.setOnCompletionListener(this);
  mNextPlayer.setOnPreparedListener(this);
  mNextPlayer.setOnErrorListener(this);
  mNextPlayer.setOnCompletionListener(this);
  mQueue=Collections.emptyList();
  mQueueIndex=0;
}

public QueuedMediaPlayer ( Context context ) { mContext = context ; mCurrentPlayer = new ManagedMediaPlayer ( ) ; mNextPlayer = new ManagedMediaPlayer ( ) ; mNextPlayer . setAudioSessionId ( mCurrentPlayer . getAudioSessionId ( ) ) ; mCurrentPlayer . setOnPreparedListener ( this ) ; mCurrentPlayer . setOnErrorListener ( this ) ; mCurrentPlayer . setOnCompletionListener ( this ) ; mNextPlayer . setOnPreparedListener ( this ) ; mNextPlayer . setOnErrorListener ( this ) ; mNextPlayer . setOnCompletionListener ( this ) ; mQueue = Collections . emptyList ( ) ; mQueueIndex = 0 ; }
initialize a new queuedmediaplayer
