0

在我的项目中使用 LibVLCSharp 会导致视频像素化和灰屏

我尝试将 file-caching=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);
4

0 回答 0