mpv: Fix unwanted window when playing audio stream from terminal #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Suggested workaround for issues #86 and #87.
I'm assuming mpv has no deeper knowlege of the file transfer protocol than the start of the URI, so testing it in
bl-mpv
before choosing a profile, replacing use of mpv's auto profiles [protocol.http], [protocol.https] and [protocol-ytdl]. This leaves thempv
command relatively close to the factory default settings.bin/bl-mpv: Use custom [bl-pseudo-gui] profile to invoke pseudo-GUI mode.
Test for http{,s} or ytdl protocols and invoke new [bl-http], [bl-https] or [bl-ytdl] profile.
Remove '--terminal=no' and '--input-terminal=no' from command line;
they are invoked in mpv's [builtin-pseudo-gui] and our [bl-pseudo-gui].
mpv/mpv.conf: Add [bl-http], [bl-https] and [bl-ytdl], invoked from bl-mpv,
to replace the auto profiles [protocol.http], [protocol.https] and [protocol-ytdl].
Add [bl-pseudo-gui] to invoke pseudo-gui mode and set screenshot directory;
this replaces calls to the deprecated [pseudo-gui] profile (see man mpv).