| | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | //记录歌曲播放时间 |
| | | private int songPlayTime = -1; |
| | | |
| | | /// <summary> |
| | | /// 获取设备最新的状态 |
| | | /// </summary> |
| | |
| | | } |
| | | ///更新的数据 |
| | | a31Music.functionMusic = localFunction; |
| | | if (int.Parse(A31MusicModel.Current.functionMusic.GetAttrState(UI2.FuntionControlView.Music.KeyProperty.playing_time)) != songPlayTime) |
| | | { |
| | | ///歌曲记录时间和当前时间不一样,立即更新数据反馈时间 |
| | | a31Music.LastDateTime = DateTime.Now; |
| | | ///歌曲记录时间和当前时间不一样,立即更新歌曲播放时间 |
| | | songPlayTime = int.Parse(A31MusicModel.Current.functionMusic.GetAttrState(UI2.FuntionControlView.Music.KeyProperty.playing_time)); |
| | | } |
| | | |
| | | } |
| | | catch { } |
| | |
| | | { |
| | | return; |
| | | } |
| | | |
| | | } |
| | | catch { } |
| | | } |
| | |
| | | var palyLists = Newtonsoft.Json.JsonConvert.DeserializeObject<List<PalyListInfo>>(str); |
| | | if (palyLists == null) |
| | | { |
| | | palyLists = new List<PalyListInfo>(); |
| | | palyLists =new List<PalyListInfo>(); |
| | | } |
| | | if (palyLists.Count > 0) |
| | | { |