mac
2024-07-25 3f6685c77beeb12baf840733fb890860f4c26e7c
HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs
@@ -276,6 +276,8 @@
            //更新状态线程
            var musicThread = new System.Threading.Thread(() =>
            {
                try
                {
                while (true)
                {
                    if (!player.functionMusic.isOnline())
@@ -287,6 +289,8 @@
                    SendMethod.Current.GetDeviceStatus(ref player, new List<string> { player.functionMusic.deviceId }, player.functionMusic.sid);
                    System.Threading.Thread.Sleep(1000);
                    Application.RunOnMainThread(() =>
                        {
                            try
                    {
                        musicView.singerBtn.Text = player.functionMusic.GetAttrState(KeyProperty.song_name);
                        musicView.songNameBtn.Text = player.functionMusic.GetAttrState(KeyProperty.song_name);
@@ -309,8 +313,18 @@
                        {
                            musicView.collectIconBtn.IsSelected = false;
                        }
                            }
                            catch (Exception e)
                            {
                                string ee = e.Message;
                            }
                    });
                }
                }
                catch (Exception e)
                {
                    string ee = e.Message;
                }
            })
            { IsBackground = true, Name = "A31" };
            musicThread.Start();