Пример #1
0
                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);
                    }
                }
Пример #2
0
                public void ServiceConnected(AudioServiceBinder binder)
                {
                    Rock.Mobile.Util.Debug.WriteLine("ServiceConnected.");
                    AudioServiceBinder = binder;

                    if (PlayerState == MediaPlayerState.WantsAutoplay)
                    {
                        StartAudio( );

                        PlayerState = MediaPlayerState.Preparing;
                    }
                }
Пример #3
0
 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;
                    }
                }