mpv for full ubuntu build, qtm for lite ubuntu build
This commit is contained in:
parent
19287efd7f
commit
5679122f5e
@ -9,21 +9,24 @@ webengine="$2"
|
|||||||
if [[ "$os" == *"ubuntu"* ]]; then
|
if [[ "$os" == *"ubuntu"* ]]; then
|
||||||
echo "We are building for GNU/Linux on Ubuntu."
|
echo "We are building for GNU/Linux on Ubuntu."
|
||||||
is_linux=true
|
is_linux=true
|
||||||
libmpv="ON"
|
|
||||||
qtmultimedia="OFF"
|
|
||||||
prefix="AppDir/usr"
|
prefix="AppDir/usr"
|
||||||
|
|
||||||
if [[ "$webengine" == "ON" ]]; then
|
if [[ "$webengine" == "ON" ]]; then
|
||||||
|
libmpv="ON"
|
||||||
|
qtmultimedia="OFF"
|
||||||
app_id="io.github.martinrotter.rssguard"
|
app_id="io.github.martinrotter.rssguard"
|
||||||
else
|
else
|
||||||
|
libmpv="OFF"
|
||||||
|
qtmultimedia="ON"
|
||||||
app_id="io.github.martinrotter.rssguardlite"
|
app_id="io.github.martinrotter.rssguardlite"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "We are building for macOS."
|
echo "We are building for macOS."
|
||||||
is_linux=false
|
is_linux=false
|
||||||
|
prefix="RSS Guard.app"
|
||||||
|
|
||||||
libmpv="OFF"
|
libmpv="OFF"
|
||||||
qtmultimedia="ON"
|
qtmultimedia="ON"
|
||||||
prefix="RSS Guard.app"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "OS: $os; Not lite: $webengine"
|
echo "OS: $os; Not lite: $webengine"
|
||||||
|
@ -67,26 +67,27 @@ LibMpvBackend::LibMpvBackend(QWidget* parent)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
mpv_set_option(m_mpvHandle, "wid", MPV_FORMAT_INT64, &wid);
|
mpv_set_option(m_mpvHandle, "wid", MPV_FORMAT_INT64, &wid);
|
||||||
|
|
||||||
mpv_set_option_string(m_mpvHandle, "input-default-bindings", "yes");
|
mpv_set_option_string(m_mpvHandle, "input-default-bindings", "yes");
|
||||||
// mpv_set_option_string(m_mpvHandle, "input-builtin-bindings", "no");
|
|
||||||
// mpv_set_option_string(m_mpvHandle, "input-test", "yes");
|
|
||||||
mpv_set_option_string(m_mpvHandle, "msg-level", "all=v");
|
mpv_set_option_string(m_mpvHandle, "msg-level", "all=v");
|
||||||
|
|
||||||
#if !defined(NDEBUG)
|
|
||||||
mpv_set_option_string(m_mpvHandle, "terminal", "yes");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
mpv_set_option_string(m_mpvHandle, "keep-open", "yes");
|
|
||||||
|
|
||||||
// mpv_set_option_string(m_mpvHandle, "no-resume-playback", "yes");
|
|
||||||
// mpv_set_option_string(m_mpvHandle, "watch-later-dir", "mpv");
|
|
||||||
// mpv_set_option_string(m_mpvHandle, "config-dir", "mpv");
|
|
||||||
|
|
||||||
mpv_set_option_string(m_mpvHandle, "config", "yes");
|
mpv_set_option_string(m_mpvHandle, "config", "yes");
|
||||||
mpv_set_option_string(m_mpvHandle, "hwdec", "auto");
|
mpv_set_option_string(m_mpvHandle, "hwdec", "auto");
|
||||||
mpv_set_option_string(m_mpvHandle, "osd-playing-msg", "${media-title}");
|
mpv_set_option_string(m_mpvHandle, "osd-playing-msg", "${media-title}");
|
||||||
mpv_set_option_string(m_mpvHandle, "osc", "yes");
|
mpv_set_option_string(m_mpvHandle, "osc", "yes");
|
||||||
mpv_set_option_string(m_mpvHandle, "input-cursor", "yes");
|
mpv_set_option_string(m_mpvHandle, "input-cursor", "yes");
|
||||||
|
mpv_set_option_string(m_mpvHandle, "keep-open", "no");
|
||||||
|
mpv_set_option_string(m_mpvHandle, "idle", "yes");
|
||||||
|
mpv_set_option_string(m_mpvHandle, "save-position-on-quit", "no");
|
||||||
|
mpv_set_option_string(m_mpvHandle, "no-resume-playback", "yes");
|
||||||
|
#if !defined(NDEBUG)
|
||||||
|
mpv_set_option_string(m_mpvHandle, "terminal", "yes");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// mpv_set_option_string(m_mpvHandle, "watch-later-dir", "mpv");
|
||||||
|
// mpv_set_option_string(m_mpvHandle, "config-dir", "mpv");
|
||||||
|
// mpv_set_option_string(m_mpvHandle, "input-builtin-bindings", "no");
|
||||||
|
// mpv_set_option_string(m_mpvHandle, "input-test", "yes");
|
||||||
|
|
||||||
// Enable keyboard input on the X11 window. For the messy details, see
|
// Enable keyboard input on the X11 window. For the messy details, see
|
||||||
// --input-vo-keyboard on the manpage.
|
// --input-vo-keyboard on the manpage.
|
||||||
|
@ -36,7 +36,7 @@ MediaPlayer::MediaPlayer(QWidget* parent)
|
|||||||
onVideoAvailable(true);
|
onVideoAvailable(true);
|
||||||
onMutedChanged(false);
|
onMutedChanged(false);
|
||||||
onPositionChanged(0);
|
onPositionChanged(0);
|
||||||
onDurationChanged(100);
|
onDurationChanged(0);
|
||||||
onSeekableChanged(true);
|
onSeekableChanged(true);
|
||||||
onSpeedChanged(100);
|
onSpeedChanged(100);
|
||||||
onVolumeChanged(50);
|
onVolumeChanged(50);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user