带水印官方插件下载地址:https://videolabs.io/solutions/vlc-unity-trial.unitypackagehttps://videolabs.io/solutions/vlc-unity-trial.unitypackage打开Assets\VLCUnity\Demos\Scenes\VLC Canvas Example.unity
找到VLCPlayerExample(Canvas)
在VLCPlayerExample.cs中找到
public void Open()
{
Log("VLCPlayerExample Open");
if (mediaPlayer.Media != null)
mediaPlayer.Media.Dispose();
var trimmedPath = path.Trim(new char[]{'"'});//Windows likes to copy paths with quotes but Uri does not like to open them
mediaPlayer.Media = new Media(new Uri(trimmedPath), options);
Play();
}
options中的:network-caching=200将延迟设为200ms