diff options
-rw-r--r-- | src/QuickMedia.cpp | 2 | ||||
-rw-r--r-- | src/plugins/Youtube.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 4265310..646d065 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -2487,7 +2487,7 @@ namespace QuickMedia { bool in_seeking = false; sf::Clock seeking_start_timer; - const float seeking_restart_timeout_sec = 4.0f; // TODO: Test if this timeout is good on slow hardware such as pinephone and slow internet + const float seeking_restart_timeout_sec = 10.0f; // TODO: Test if this timeout is good on slow hardware such as pinephone and slow internet const int num_load_tries_max = 3; int load_try = 0; diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 1f8c103..f113e0c 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -1886,7 +1886,8 @@ namespace QuickMedia { if(audio_formats.empty()) return ""; - const YoutubeAudioFormat *chosen_audio_format = &audio_formats.front(); + // TODO: The "worst" (but still good) quality audio is chosen right now because youtube seeking freezes for up to 15 seconds when choosing the best quality + const YoutubeAudioFormat *chosen_audio_format = &audio_formats.back(); fprintf(stderr, "Choosing youtube audio format: bitrate: %d, mime type: %s\n", chosen_audio_format->base.bitrate, chosen_audio_format->base.mime_type.c_str()); return chosen_audio_format->base.url; } |