【视频背景】尝试修复部分机型视频背景显示黑屏的问题
parent
98b1518306
commit
c86cf619d0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue