diff --git a/features/home/src/main/ets/view/VideoDialog.ets b/features/home/src/main/ets/view/VideoDialog.ets index 5e9671b93101fa710d5aab6321063a51371a85f5..88997a3ea0cc6adc99a08187069f2baf81a99ee1 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.