Exemplo n.º 1
0
        private void Play(int nIndex)
        {
            if (musicList.Count == 0)
            {
                return;
            }

            CurrentPlayIndex = nIndex;

            Debug.WriteLine("Music Index:" + CurrentPlayIndex);

            simplePlay.Open(musicList[CurrentPlayIndex].Name);

            simplePlay.Play();

            currentMusicName.Text = simplePlay.DisplayText = "현재 플레이 " + musicList[CurrentPlayIndex].ViewName;

            totalTime.Text   = simplePlay.GetTotalTimeDisplay();
            currentTime.Text = simplePlay.GetCurrentTimeDisplay();

            //LoadAni();

            TickerLabel.Content = simplePlay.DisplayText;
            TickerLabel.Run(true);
        }
Exemplo n.º 2
0
        private void Play(int nIndex)
        {
            if (musicList.Count == 0)
            {
                return;
            }

            CurrentPlayIndex = nIndex;

            Debug.WriteLine(CurrentPlayIndex.ToString());

            if (simplePlay.IsPlaying())
            {
                simplePlay.Stop();
            }

            simplePlay.OnPause = false;
            simplePlay.Open(musicList[CurrentPlayIndex].Name);

            simplePlay.Play();

            currentMusicName.Text = simplePlay.DisplayText = "현재 플레이 " + musicList[CurrentPlayIndex].ViewName;

            totalTime.Text   = simplePlay.GetTotalTimeDisplay();
            currentTime.Text = simplePlay.GetCurrentTimeDisplay();

            LoadAni();

            TickerLabel.Content = simplePlay.DisplayText;
            TickerLabel.Run(true);
        }
Exemplo n.º 3
0
        protected override void OnAppearing()
        {
            bool bPlay = simplePlay.IsPlaying();

            if (bPlay)
            {
                UpdatePlayState();
            }
            else
            {
                currentMusicName.Text = simplePlay.DisplayText;
                progress.Progress     = simplePlay.GetCurrentPosition() * 1.0f / simplePlay.GetPosition();
            }

            totalTime.Text   = simplePlay.GetTotalTimeDisplay();
            currentTime.Text = simplePlay.GetCurrentTimeDisplay();

            TickerLabel.Content = simplePlay.DisplayText;
            TickerLabel.Run(true);

            base.OnAppearing();
        }