【登录视频】优化显示

dev_chengFeng
gaoxin 2021-06-03 10:39:25 +08:00
parent 7273dce8a1
commit c9f17c4883
2 changed files with 8 additions and 5 deletions

View File

@ -49,9 +49,11 @@ function PackageManager.SetVideo(obj,Image)
if this.config.VideoName then
local video = obj:GetComponent("VideoPlayer")
Log("加载视频:"..tostring(this.config.VideoName))
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.IS_PLAY_LOGIN_VIDEO) then
video.url = ServerConfigManager.GetVersionInfo("resUrl") .. AppConst.PlatformPath .."/"..tostring(this.config.VideoName) ..".mp4"
-- video.clip = resMgr:LoadAsset(this.config.VideoName)
video:Play()
end
Image:SetActive(true)
else
LogError("包名:"..tostring(this.config.PackageName).."登录视频为空!")
@ -61,7 +63,7 @@ end
function PackageManager.UnloadVideo()
if this.config.VideoName then
Log("卸载视频:"..tostring(this.config.VideoName))
resMgr:UnLoadAsset(this.config.VideoName)
-- Log("卸载视频:"..tostring(this.config.VideoName))
-- resMgr:UnLoadAsset(this.config.VideoName)
end
end

View File

@ -14,6 +14,7 @@ ServerConfigManager.SettingConfig = {
PACKAGE_CC_CODE = "PACKAGE_CC_CODE", -- CC号
SPRITE_LOADER = "SPRITE_LOADER", -- 资源加载器是否可以使用
IS_TITLE_EFFECT_SCALE = "IS_TITLE_EFFECT_SCALE", -- 判断
IS_PLAY_LOGIN_VIDEO = "IS_PLAY_LOGIN_VIDEO", -- 判断是否可以播放登录视频
}