connect a local session manager to the unique remote session manager , creating it if needed . concode_field_sep int mItemId concode_elem_sep MediaItem mCurrentItem concode_elem_sep LocalSessionManager mLocalSessionManager concode_elem_sep boolean mPaused concode_elem_sep DummyPlayer mPlayer concode_elem_sep int mSessionId concode_elem_sep boolean mSessionValid concode_elem_sep RemoteSessionManager sInstance concode_elem_sep String mName concode_elem_sep String TAG concode_elem_sep Context mContext concode_field_sep void onCompletion concode_elem_sep void disconnect concode_elem_sep MediaItem removeItem concode_elem_sep void checkItemCurrent concode_elem_sep void onItemChanged concode_elem_sep void updatePlaybackState concode_elem_sep void checkPlayerAndSession concode_elem_sep MediaItem getStatus concode_elem_sep MediaItem seek concode_elem_sep String getSessionStatusString concode_elem_sep MediaItem getCurrentItem concode_elem_sep MediaSessionStatus getSessionStatus concode_elem_sep String startSession concode_elem_sep void finishItem concode_elem_sep void checkSession concode_elem_sep MediaItem add concode_elem_sep void resume concode_elem_sep boolean isPaused concode_elem_sep void onError concode_elem_sep void onPrepared concode_elem_sep void onSeekComplete concode_elem_sep void pause concode_elem_sep void checkPlayer concode_elem_sep void stop concode_elem_sep void updateStatus concode_elem_sep String getSessionId
RemoteSessionManager function ( LocalSessionManager arg0 , Context arg1 ) { if ( sInstance == null ) { sInstance = new RemoteSessionManager ( "srini_string" , arg1 ) ; } sInstance . mLocalSessionManager = arg0 ; return sInstance ; }