【登录视频】从远端加载
parent
865051dfb1
commit
38d8d83dcd
|
@ -46,16 +46,16 @@ function PackageManager.GetLoadingList()
|
||||||
end
|
end
|
||||||
|
|
||||||
function PackageManager.SetVideo(obj,Image)
|
function PackageManager.SetVideo(obj,Image)
|
||||||
local video = obj:GetComponent("VideoPlayer")
|
|
||||||
if this.config.VideoName then
|
if this.config.VideoName then
|
||||||
Image:SetActive(true)
|
Image:SetActive(true)
|
||||||
|
local video = obj:GetComponent("VideoPlayer")
|
||||||
Log("加载视频:"..tostring(this.config.VideoName))
|
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()
|
video:Play()
|
||||||
else
|
else
|
||||||
LogError("包名:"..tostring(this.config.PackageName).."登录视频为空!")
|
LogError("包名:"..tostring(this.config.PackageName).."登录视频为空!")
|
||||||
Image:SetActive(false)
|
Image:SetActive(false)
|
||||||
video:Pause()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue