【登录视频】从远端加载
parent
865051dfb1
commit
38d8d83dcd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue