public void OnServiceConnected(ComponentName name, IBinder serviceBinder) { Rock.Mobile.Util.Debug.WriteLine("OnServiceConnected - We are binding"); AudioServiceBinder binder = serviceBinder as AudioServiceBinder; if (binder != null) { ConnectionFragment.ServiceConnected(binder); } }
public void ServiceConnected(AudioServiceBinder binder) { Rock.Mobile.Util.Debug.WriteLine("ServiceConnected."); AudioServiceBinder = binder; if (PlayerState == MediaPlayerState.WantsAutoplay) { StartAudio( ); PlayerState = MediaPlayerState.Preparing; } }
public override IBinder OnBind(Intent intent) { _binder = new AudioServiceBinder(this); InitializeMediaSession(); return(_binder); }
public void ServiceConnected( AudioServiceBinder binder ) { Rock.Mobile.Util.Debug.WriteLine( "ServiceConnected." ); AudioServiceBinder = binder; if ( PlayerState == MediaPlayerState.WantsAutoplay ) { StartAudio( ); PlayerState = MediaPlayerState.Preparing; } }