Beispiel #1
0
        void StopHelper()
        {
            currentState = MediaStates.End;

            if (player != null)
            {
                player.Stop();
                player.Release();
                player.Dispose();
            }
            wifiLock.Release();
            wifiLock.Dispose();

            am.UnregisterMediaButtonEventReceiver(mediaComponent);
            am.Dispose();

            mediaComponent.Dispose();

            StopForeground(true);
        }