在我的项目中使用LibVLCSharp导致视频pixeled和灰幕
我想1500添加文件缓存=要媒体播放器,但没有成功,你可以在下面看到我的代码
this.VideoPath = extras.GetString(INTENT_KEY_PARAM_VIDEO_PATH);
Core.Initialize();
_libVLC = new LibVLC();
_mediaPlayer = new MediaPlayer(_libVLC);
_videoView.MediaPlayer = _mediaPlayer;
var mediaUri = Android.Net.Uri.Parse(this.VideoPath);
var m = new Media(_libVLC, mediaUri.ToString(), FromType.FromPath);
var configuration = new MediaConfiguration();
configuration.EnableHardwareDecoding();
m.AddOption(":fullscreen");
m.AddOption(":codec=avcodec");
m.AddOption(configuration);
m.AddOption(":file-caching=1500");
_mediaPlayer.Media = m;
_videoView.MediaPlayer.Play(m);