From c85cd297b0453e8889f8633e4cfe6161ae469d56 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 16 Oct 2021 21:34:05 +0200 Subject: Add --max-video-height argument to limit video height --- include/QuickMedia.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/QuickMedia.hpp') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 19c634e..c19e1f6 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -117,6 +117,7 @@ namespace QuickMedia { bool page_loop(std::vector &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr, bool go_to_previous_on_escape = true); void video_page_download_video(const std::string &url, sf::WindowHandle video_player_window = None); bool video_download_if_non_streamable(std::string &video_url, std::string &audio_url, bool &is_audio_only, bool &has_embedded_audio, PageType previous_page); + int video_get_max_height(); void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, Body *parent_body, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = ""); void save_manga_progress(MangaImagesPage *images_page, Json::Value &json_chapters, Json::Value &json_chapter, int &latest_read); // Returns -1 to go to previous chapter, 0 to stay on same chapter and 1 to go to next chapter @@ -213,5 +214,6 @@ namespace QuickMedia { std::string youtube_url; std::unique_ptr video_player; bool use_youtube_dl = false; + int video_max_height = 0; }; } \ No newline at end of file -- cgit v1.2.3