修复视频bug
authorxue <2144439972@qq.com>
Sat, 20 Sep 2025 12:03:26 +0000 (20:03 +0800)
committerxue <2144439972@qq.com>
Sat, 20 Sep 2025 12:03:26 +0000 (20:03 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdDialogueView.h
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp

index c14ad84..de7dd42 100644 (file)
 
 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/";
index ee0ee18..551d3e4 100644 (file)
@@ -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)
index 0414e15..a3d4b9b 100644 (file)
@@ -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");