Пример #1
0
 public void Stop()
 {
     mSong = null;
     mIsPlaying = false;
     mSongQueuePosition = -1;
 }
Пример #2
0
        public void PlaySong()
        {
            if (mSongQueuePosition >= mPlaylist.Count)
            {
                mSongQueuePosition = 0;
            }

            if (mPlaylist.Count == 0)
            {
                Stop();
                return;
            }

            mSong = mPlaylist[mSongQueuePosition];
            mStartedPlayingTimestamp = UnixTimestamp.GetCurrent();
            mBroadcastNeeded = true;
        }