【视频背景】尝试修复部分机型视频背景显示黑屏的问题

dev_chengFeng
gaoxin 2021-06-16 17:30:54 +08:00
parent 98b1518306
commit c86cf619d0
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ function PackageManager.SetVideo(obj, bg)
local video = obj:GetComponent("VideoPlayer")
-- video.url = ServerConfigManager.GetVersionInfo("resUrl") .. AppConst.PlatformPath .."/"..tostring(this.config.VideoName) ..".mp4"
-- video.clip = resMgr:LoadAsset(this.config.VideoName)
video.url = AppConst.PersistentDataPath .."/"..tostring(this.config.VideoName)
video.url = "file://" .. AppConst.PersistentDataPath .."/"..tostring(this.config.VideoName)
video:Play()
bg:DOFade(0, 2)
obj:SetActive(true)