From a1da7d32ce9f3bad4279f07c751235ae70ee146f Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Thu, 28 Dec 2023 10:16:00 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91=E6=92=AD?= =?utf8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../components/ui_test_video_play/ui_test_video_play.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/sdk/middleware/services/gui/uikit/sample/uitest/components/ui_test_video_play/ui_test_video_play.cpp b/code/sdk/middleware/services/gui/uikit/sample/uitest/components/ui_test_video_play/ui_test_video_play.cpp index 4627cd32b..faf844e49 100755 --- a/code/sdk/middleware/services/gui/uikit/sample/uitest/components/ui_test_video_play/ui_test_video_play.cpp +++ b/code/sdk/middleware/services/gui/uikit/sample/uitest/components/ui_test_video_play/ui_test_video_play.cpp @@ -19,8 +19,8 @@ #include "components/root_view.h" namespace OHOS { -static constexpr int16_t VIDEO_WIDTH = 454; -static constexpr int16_t VIDEO_HEIGHT = 454; +static constexpr int16_t VIDEO_WIDTH = 466; +static constexpr int16_t VIDEO_HEIGHT = 466; static constexpr int16_t STRIDE_ALIGNMENT_VALUE = 64; static constexpr int16_t BUFFER_QUEUE_SIZE = 3; static constexpr int16_t JPEG_HEIGHT_DIVISOR = 2; @@ -66,7 +66,7 @@ void UITestVideoPlay::SetUp() label_ = new UILabel(); char filePath[PATH_MAX]; - if (realpath("/user/video/panda.mp4", filePath) == nullptr) { + if (realpath("/user/video/dial.mp4", filePath) == nullptr) { label_->SetPosition(60, 227, 330, 70); // 60, 227, 330, 70: Left, right, width, height. label_->SetText("please upload video resource."); label_->SetStyle(STYLE_BACKGROUND_COLOR, 0xff505050); @@ -133,7 +133,7 @@ void UITestVideoPlay::SetUp() int32_t bufferSize = ySize + uvSize; surface->SetSize(bufferSize); if (videoPlay_ == nullptr) { - std::string uri("/user/video/panda.mp4"); + std::string uri("/user/video/dial.mp4"); videoPlay_ = new MediaVideoPlay(surface, button1_, uri); if (videoPlay_ == nullptr) { GRAPHIC_LOGE("videoPlay_ is nullptr\n"); -- 2.17.1