How can I use config file with MpvPlayer
Fantoom opened this issue · comments
Fantoom commented
Fantoom commented
I have added
public void LoadConfig(string absolutePath)
{
mpv.LoadConfigFile(absolutePath);
}
to Mpv.NET.Player.MpvPlayer and it worked.
Aurel Hudec commented
Hello @Fantoom,
I will include this feature in the next release of Mpv.NET. In the meantime, a workaround that does not require re-compilation of the latest release is:
player.API.LoadConfigFile("my/absolute/path/to/config");
The "API" property on the player is a reference to an instance of the "Mpv" class that is being used by the player.