#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;
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);
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");