From 6d9bf686b355edb9732c982eaf799190120b5820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B5=A9=E7=A8=8B?= <798994511@qq.com> Date: Wed, 28 Aug 2024 09:15:00 +0000 Subject: [PATCH] =?UTF-8?q?update=20features/home/src/main/ets/view/VideoD?= =?UTF-8?q?ialog.ets.=20=E4=B8=80=E5=A4=9A=E9=95=BF=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=E9=95=BF=E6=8C=89=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=97=A0=E6=B3=95=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 付浩程 <798994511@qq.com> --- features/home/src/main/ets/view/VideoDialog.ets | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/home/src/main/ets/view/VideoDialog.ets b/features/home/src/main/ets/view/VideoDialog.ets index 5e9671b..88997a3 100644 --- a/features/home/src/main/ets/view/VideoDialog.ets +++ b/features/home/src/main/ets/view/VideoDialog.ets @@ -201,8 +201,7 @@ export struct VideoDialog { async createAvPlayer(): Promise { this.avPlayer = await media.createAVPlayer(); // Entering the idle state. - this.url = await this.context.createModuleContext(CommonConstants.VIDEO_DETAIL_HSP_NAME).resourceManager - .getRawFd(CommonConstants.PRODUCT_VIDEO_NAME); + this.url = await this.context.resourceManager.getRawFd(CommonConstants.PRODUCT_VIDEO_NAME); this.avPlayer.fdSrc = this.url; this.setAVPlayerCallback(); // Initialize the playback status. -- Gitee