【登录视频】修复登录视频黑屏

dev_chengFeng
gaoxin 2021-08-04 18:06:51 +08:00
parent 1e4b55d9fd
commit e46fa3636d
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ function PackageManager.SetVideo(obj, bg)
Log("加载Stream视频"..tostring(this.StreamConfig.LoginPanelVideoBG))
if UIManager.IsOpen(UIName.LoginPanel) then
local video = obj:GetComponent("VideoPlayer")
video.url = "file://" .. UnityEngine.Application.streamingAssetsPath .."/Res/"..tostring(this.StreamConfig.LoginPanelVideoBG)..".mp4"
video.url = UnityEngine.Application.streamingAssetsPath .."/Res/"..tostring(this.StreamConfig.LoginPanelVideoBG)..".mp4"
video:Play()
bg:DOFade(0, 2)
obj:SetActive(true)