SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
716 stars 102 forks source link

How to use FlyleafLib.Config() for new version of FlyleafLib? #65

Closed zydjohnHotmail closed 3 years ago

zydjohnHotmail commented 3 years ago

Hello: For previous version of Flyleaf 3.1.14, I can write the following C# code to use config(): Config config = new(); config.demuxer.VideoFormatOpt.Add("probesize", (50 (long)1024 1024).ToString()); config.demuxer.VideoFormatOpt.Add("analyzeduration", (10 (long)1000 1000).ToString()); FLPlayer1 = new Player(config) { Control = flyleaf1 };

Since there is a new version of Flyleaf: version 3.2.4, my above code did NOT work. Please advise, how I can use FlyleafLib.Config()?

SuRGeoNix commented 3 years ago

VideoFormatOpt changed to global FormatOpt. Please check the samples before you ask