mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 21:56:18 -08:00
feat(settings): add external player arguments (#932)
* feat(settings): add external player arguments * fix(settings): address external player argument review * fix(settings): require external player argument settings * feat(settings): add external player argument placeholders Closes https://github.com/4gray/iptvnator/issues/835
This commit is contained in:
1 parent
2f9aef1578
commit
a40d5447e7
35 files changed
+584
-70
No files matched your search
@@ -160,6 +160,24 @@ When a diagnostic is actionable in Electron, the inline banner may offer `Open i
|
||||
|
||||
`PortalPlayer.openExternalPlayback(playback, player)` is the forced external launch API. It sends the playback payload to MPV or VLC regardless of the current saved player setting, so fallback buttons do not mutate preferences.
|
||||
|
||||
## External Player Arguments
|
||||
|
||||
Electron settings expose optional MPV and VLC command-line argument fields only
|
||||
when the corresponding external player is selected. The executable path remains a
|
||||
path-only setting; extra flags are stored separately as `mpvPlayerArguments` and
|
||||
`vlcPlayerArguments`.
|
||||
|
||||
Argument fields are line-oriented: one non-empty trimmed line becomes one argv
|
||||
entry. IPTVnator prepends those custom entries before its stream-specific runtime
|
||||
arguments, then keeps the stream URL last. This avoids shell parsing, keeps paths
|
||||
with spaces safe, and preserves existing settings for users who never configured
|
||||
extra arguments.
|
||||
|
||||
The arguments apply only when IPTVnator spawns a new external player process. If
|
||||
MPV or VLC instance reuse is active and an existing process is reused, subsequent
|
||||
streams are loaded through MPV IPC or VLC RC commands and new process arguments
|
||||
are not re-applied until a fresh process starts.
|
||||
|
||||
## Flatpak External Players
|
||||
|
||||
Flatpak cannot execute host-installed `mpv` or `vlc` binaries directly from the sandbox.
|
||||
|
||||
Reference in new issue
Block a user