aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-11 07:36:13 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-11 07:36:13 +0200
commit26b593b1eac483f700c72b4195e372f4b92acc7f (patch)
treee66ca03441f7ea98765b241cb29615dccf3657ae /src
parent63ceee7552487a6111f9bef460448f0bc3958607 (diff)
Do not auto pause for seconds when buffering
Diffstat (limited to 'src')
-rw-r--r--src/VideoPlayer.cpp1
-rw-r--r--src/plugins/Youtube.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 4fce4e0..adc7eb8 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -134,6 +134,7 @@ namespace QuickMedia {
ytdl_format.c_str(),
// TODO: Disable hr seek on low power devices?
"--hr-seek=yes",
+ "--cache-pause=no",
"--cookies",
cookies_file_arg.c_str(),
input_conf.c_str(),
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index 8575d07..ce359d4 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -1904,7 +1904,7 @@ namespace QuickMedia {
if(!streaming_data_json.isObject())
return PluginResult::ERR;
- // TODO: Verify if this always works (what about copyrighted live streams?), also what about choosing video quality for live stream?
+ // TODO: Verify if this always works (what about copyrighted live streams?), also what about choosing video quality for live stream? Maybe use mpv --hls-bitrate option?
const Json::Value &hls_manifest_url_json = streaming_data_json["hlsManifestUrl"];
if(hls_manifest_url_json.isString()) {
hls_manifest_url = hls_manifest_url_json.asString();