Web stream audio and subtitle track selection

This commit is contained in:
Frank Skare
2020-12-29 06:00:06 +01:00
parent 636d28ac54
commit ea5d3e64ee
2 changed files with 7 additions and 3 deletions

View File

@@ -2,8 +2,9 @@
5.4.8.7 Beta (202?-??-??) 5.4.8.7 Beta (202?-??-??)
========================= =========================
- history feature can be configured to ingore defined paths/keywords: - history feature can be configured to ingore defined strings:
script-opt = history-discard=path1;path2 script-opt = history-discard=value1;value2
- Web stream audio and subtitle track selection.
5.4.8.6 Beta (2020-12-24) 5.4.8.6 Beta (2020-12-24)

View File

@@ -997,6 +997,9 @@ namespace mpvnet
if (left == "script") if (left == "script")
left = "scripts"; left = "scripts";
if (left == "external-file")
left = "external-files";
if (preInit && preInitProperties.Contains(left)) if (preInit && preInitProperties.Contains(left))
{ {
core.ProcessProperty(left, right); core.ProcessProperty(left, right);
@@ -1274,7 +1277,7 @@ namespace mpvnet
{ {
MediaTracks.Clear(); MediaTracks.Clear();
if (path.ToLowerEx().StartsWithEx("bd://") || path.ToLowerEx().StartsWithEx("dvd://")) if (path.ToLowerEx().Contains("://"))
{ {
int count = core.get_property_int("track-list/count"); int count = core.get_property_int("track-list/count");