From: Caisking <3449750381@qq.com> Date: Thu, 14 Dec 2023 07:40:08 +0000 (+0800) Subject: 隐藏视频播放,设置开机播放音乐 X-Git-Tag: release_V1.2.70_20241020_135402~1410 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0494054081cea8c2b5296547565537d3b564d955;p=mirrors%2FFD230.git 隐藏视频播放,设置开机播放音乐 --- diff --git a/.vscode/settings.json b/.vscode/settings.json index fc174e1fd..07bbe7e76 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,7 @@ "ios": "cpp", "iterator": "cpp", "bitset": "cpp", - "string_view": "cpp" + "string_view": "cpp", + "chrono": "cpp" } } \ No newline at end of file diff --git a/code/sdk/application/wearable/nativeapp/nativeui/player/include/PlayersModel.h b/code/sdk/application/wearable/nativeapp/nativeui/player/include/PlayersModel.h index 724c7394d..449c4ca86 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/player/include/PlayersModel.h +++ b/code/sdk/application/wearable/nativeapp/nativeui/player/include/PlayersModel.h @@ -107,7 +107,7 @@ private: AudioInterrupt interrupt; std::shared_ptr playerInterruptListener{nullptr}; int64_t circleProgress{0}; - bool playButtonState{false}; + bool playButtonState{true}; void SequencePlayout(void); void RandomPlayout(void); void NextSong(int16_t index); diff --git a/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersModel.cpp b/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersModel.cpp index 2236a0f04..f4d80953d 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersModel.cpp +++ b/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersModel.cpp @@ -254,6 +254,7 @@ int PlayersModel::PlayerInit(void) playersPresenter->SetTitleSetText(songName); playersPresenter->SetPlaybackProgress(circleProgress); playersPresenter->SetPlayerState(playButtonState); + PlayerStat(); return 0; } diff --git a/code/sdk/application/wearable/nativeapp/nativeui/uisample/uitest/framework/src/ui_test_group.cpp b/code/sdk/application/wearable/nativeapp/nativeui/uisample/uitest/framework/src/ui_test_group.cpp index db1ab83f3..786e39265 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/uisample/uitest/framework/src/ui_test_group.cpp +++ b/code/sdk/application/wearable/nativeapp/nativeui/uisample/uitest/framework/src/ui_test_group.cpp @@ -54,7 +54,7 @@ void UITestGroup::SetUpTestCase() testCaseList_->PushBack(TestCaseInfo{"倒计时", new UITestCountdown()}); testCaseList_->PushBack(TestCaseInfo{"动画曲线", new UITestRunningBall()}); #endif - testCaseList_->PushBack(TestCaseInfo{"视频播放", new UITestVideoPlay()}); + //testCaseList_->PushBack(TestCaseInfo{"视频播放", new UITestVideoPlay()}); } List& UITestGroup::GetTestCase()