You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 10, 2023. It is now read-only.
Download it from [here](https://mpv.io/installation/) (Windows users please get the latest version from [here](https://sourceforge.net/projects/mpv-player-windows/files/)) and either put it in the same folder as the F1Viewer binary or add it to your PATH environment variable.
32
+
Download it from [here](https://mpv.io/installation/) and either put it in the same folder as the F1Viewer binary or add it to your PATH environment variable.
33
+
34
+
35
+
30
36
31
37
### FLAGS
32
38
33
39
-d
34
40
shows debug information
35
41
36
-
-vlc
37
-
enables the VLC http stream option, requires a config with the correct parameters set.
38
-
39
42
### CONFIG
40
-
The config is optional. It is used to set a preferred audio language and VLC streaming credentials.
43
+
The config is is optional. It is used to set a preferred audio language and custom commands.
41
44
The sample config looks like this.
42
45
43
46
{
44
47
"preferred_language": "en",
45
-
"vlc_telnet_port": "4212",
46
-
"vlc_telnet_pass": "admin"
48
+
"custom_playback_options": [
49
+
{
50
+
"title": "Play with MPV custom",
51
+
"commands": [
52
+
["mpv", "$url", "--alang=de"]
53
+
],
54
+
"watchphrase": "Video",
55
+
"command_to_watch": 0
56
+
}
57
+
]
47
58
}
59
+
48
60
Save it as `config.json` in the same Folder as the F1Viewer binary
61
+
62
+
### CUSTOM COMMANDS
63
+
You can execute custom commands, for exaple to launch a different player. These are set in the config under `custom_playback_options`. You can add as many as you want.
64
+
65
+
`title` is the title. It will appear next to the standard `Play with MPV` and `Download .m3u8`.
66
+
67
+
`commands` is where your custom command goes. There can be one or more.
68
+
Commands are saved as a list of args, like `["mpv", "$url", "--alang=de"]`.
69
+
`$url` will be replaced with the correct playback URL.
70
+
71
+
`watchphrase` is optional. it is used to play a `loading...` animation.
72
+
F1Viewer can parse the output of your command and stop the animation once the `watchphrase` is found. This can be useful if your command takes a while to execute.
73
+
74
+
`command_to_watch` belongs to `watchphrase`. It defines what command to parse if there are multiple. It is indexed at 0 so if you only have 1 command, `command_to_watch` should be `0`.
75
+
76
+
If `command_to_watch` is out of range or `watchphrase` is an empty string, the loading animation will be skipped.
0 commit comments