From: xue <2144439972@qq.com> Date: Sat, 20 Sep 2025 12:03:26 +0000 (+0800) Subject: 修复视频bug X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~32 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=5a561364dcc246457e2e5a7f52635d3ac52577e1;p=mirrors%2FFD230.git 修复视频bug --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h index c14ad84a7..de7dd42b0 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h @@ -10,10 +10,14 @@ namespace OHOS { - static constexpr int16_t TB_SPEAK_ANIM_X = 141; + // static constexpr int16_t TB_SPEAK_ANIM_X = 141; + // static constexpr int16_t TB_SPEAK_ANIM_Y = 112; + // static constexpr int16_t TB_SPEAK_ANIM_W = 78; + // static constexpr int16_t TB_SPEAK_ANIM_H = 24; + static constexpr int16_t TB_SPEAK_ANIM_X = 161; static constexpr int16_t TB_SPEAK_ANIM_Y = 112; - static constexpr int16_t TB_SPEAK_ANIM_W = 78; - static constexpr int16_t TB_SPEAK_ANIM_H = 24; + static constexpr int16_t TB_SPEAK_ANIM_W = 58; + static constexpr int16_t TB_SPEAK_ANIM_H = 18; static constexpr int16_t TB_SPEAK_ANIM_FRAMES = 25; static constexpr int16_t TB_SPEAK_ANIM_INTERVAL = 41; static constexpr const char *TB_SPEAK_ANIM_PATH = "/user/res/animated_icon/speak/"; diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp index ee0ee18f7..551d3e488 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp @@ -165,10 +165,12 @@ namespace OHOS { if (TextLabel) { + TextLabel->SetPosition(0, 64, 360, 42); TextLabel->SetVisible(true); } if (TextLabel_Y) { + TextLabel_Y->SetPosition(2, 66, 360, 42); TextLabel_Y->SetVisible(true); } if(ThunderBirdModel::GetInstance()->IsTextEmpty() == true) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp index 0414e15ce..a3d4b9b8d 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp @@ -356,7 +356,7 @@ namespace OHOS } // 创建新播放器并启动 - videoPlay_ = new MediaVideoPlay(surface, nullptr, std::string(uri), false); + videoPlay_ = new MediaVideoPlay(surface, nullptr, std::string(uri), true); if (videoPlay_ == nullptr) { return false; @@ -687,7 +687,7 @@ namespace OHOS if (videoPlay_ == nullptr) { std::string uri("/user/video/CloseEyes/RoundEyes/amber.mp4"); - videoPlay_ = new MediaVideoPlay(surface, nullptr, uri, false); + videoPlay_ = new MediaVideoPlay(surface, nullptr, uri, true); if (videoPlay_ == nullptr) { GRAPHIC_LOGE("videoPlay_ is nullptr\n");