| | |
| | | } |
| | | catch { } |
| | | } |
| | | |
| | | |
| | | } |
| | | View.PlayView playView = new View.PlayView(); |
| | | |
| | | |
| | | |
| | | public void Show() |
| | | { |
| | | ///1秒定时更新状态 |
| | |
| | | }; |
| | | ///音量进度条点击事件 |
| | | int startVolume =0;//之前的音量 |
| | | //int endVolume = 0;//现在的音量 |
| | | EventHandler<int> progressClick = (sender, e) => |
| | | { |
| | | playView.volValueBtn.Text = playView.volSeekBar.Progress + "%"; |
| | |
| | | }; |
| | | |
| | | } |
| | | |
| | | System.Threading.Thread timerThread; |
| | | /// <summary> |
| | | /// 定时更新状态 |
| | |
| | | { |
| | | while (true) |
| | | { |
| | | //if (startVolume != endVolume) |
| | | //{ |
| | | // startVolume = endVolume; |
| | | // SendMethod.ControlVolume(endVolume, A31MusicModel.Current); |
| | | // A31MusicModel.Current.A31PlayStatus.vol = endVolume.ToString(); |
| | | //} |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | try |
| | |
| | | //更新播放器音量给系统音量 |
| | | Volume.MusicVolume = playView.volSeekBar.Progress; |
| | | //当前播放音乐时间 |
| | | int playSecond = int.Parse(A31MusicModel.Current.A31PlayStatus.curpos) / 1000+(int)(DateTime.Now - A31MusicModel.Current.LastDateTime).TotalSeconds; |
| | | |
| | | int playSecond = int.Parse(A31MusicModel.Current.A31PlayStatus.curpos) / 1000 + (int)(DateTime.Now - A31MusicModel.Current.LastDateTime).TotalSeconds; |
| | | |
| | | int playMusicMinute = playSecond / 60; |
| | | //秒钟 |
| | | int playMusicSecond = playSecond % 60; |