修复bug
This commit is contained in:
parent
0795a60dde
commit
01f6331770
@ -135,10 +135,13 @@ namespace QFramework.Example
|
|||||||
VideoContent.rectTransform.sizeDelta = mData.size;
|
VideoContent.rectTransform.sizeDelta = mData.size;
|
||||||
}
|
}
|
||||||
VideoContent.transform.localPosition = mData.offset;
|
VideoContent.transform.localPosition = mData.offset;
|
||||||
|
string path = Global.videoPath + mData.url;
|
||||||
player.url = Global.videoPath + mData.url;
|
if (string.IsNullOrEmpty(path) == false)
|
||||||
player.Play();
|
{
|
||||||
SetImg();
|
player.url = path;
|
||||||
|
player.Play();
|
||||||
|
SetImg();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void VideoPlayer_loopPointReached(UnityEngine.Video.VideoPlayer source)
|
private void VideoPlayer_loopPointReached(UnityEngine.Video.VideoPlayer source)
|
||||||
|
|||||||
@ -78,7 +78,7 @@ namespace QFramework.Example
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
label.color = isOn == true ? Color.black : Color.white;
|
label.color = isOn == true ? Color.blue : Color.black;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (itemData.subs != null && itemData.subs.Count > 0)
|
if (itemData.subs != null && itemData.subs.Count > 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user