VLC for Unity播放RTSP延迟高的解决办法:
设置网络缓存时长network-caching=100
public void Open(){Log("VLCPlayerExample Open");if (mediaPlayer.Media != null)mediaPlayer.Media.Dispose();List<string> options = new List<string>();options.Add(":network-caching=100");//网络缓存var trimmedPath = path.Trim(new char[]{'"'});//Windows likes to copy paths with quotes but Uri does not like to open themmediaPlayer.Media = new Media(new Uri(trimmedPath), options.ToArray());Play();}