【登录视频】从远端加载

dev_chengFeng
gaoxin 2021-06-03 08:38:33 +08:00
parent 865051dfb1
commit 38d8d83dcd
1 changed files with 3 additions and 3 deletions

View File

@ -46,16 +46,16 @@ function PackageManager.GetLoadingList()
end
function PackageManager.SetVideo(obj,Image)
local video = obj:GetComponent("VideoPlayer")
if this.config.VideoName then
Image:SetActive(true)
local video = obj:GetComponent("VideoPlayer")
Log("加载视频:"..tostring(this.config.VideoName))
video.clip = resMgr:LoadAsset(this.config.VideoName)
video.url = ServerConfigManager.GetVersionInfo("resUrl") .. AppConst.PlatformPath .."/"..tostring(this.config.VideoName) ..".mp4"
-- video.clip = resMgr:LoadAsset(this.config.VideoName)
video:Play()
else
LogError("包名:"..tostring(this.config.PackageName).."登录视频为空!")
Image:SetActive(false)
video:Pause()
end
end