From 63f1991631bf968408d768a80e854c2db00ee0b1 Mon Sep 17 00:00:00 2001 From: sfchu Date: Wed, 2 Apr 2025 09:59:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=EF=BC=88XC?= =?UTF-8?q?omponent=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/VideoPlay.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/VideoPlay.ets b/entry/src/main/ets/pages/VideoPlay.ets index 302da59..5eb9f74 100644 --- a/entry/src/main/ets/pages/VideoPlay.ets +++ b/entry/src/main/ets/pages/VideoPlay.ets @@ -167,7 +167,7 @@ export struct PlayVideo { .fontColor($r('app.color.XComponent_text_color')) .margin({ bottom: $r('app.integer.x_component_marg_bottom') }) .visibility(this.hintMsgVisibility ? Visibility.Visible : Visibility.Hidden) - XComponent({ id: 'video', type: 'surface', controller: this.mXComponentController }) + XComponent({ id: 'video', type: XComponentType.SURFACE, controller: this.mXComponentController }) .onLoad(() => { Logger.info(`[${TAG}] XComponent onLoad`); this.surfaceId = this.mXComponentController.getXComponentSurfaceId(); -- Gitee