diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-16 21:34:05 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-16 21:34:05 +0200 |
commit | c85cd297b0453e8889f8633e4cfe6161ae469d56 (patch) | |
tree | 4d2db02a9dcfb3d627bd569b78a1dffb8d99fe71 /include | |
parent | 5ba091235fef86fda675021812eb7559241c1b80 (diff) |
Add --max-video-height argument to limit video height
Diffstat (limited to 'include')
-rw-r--r-- | include/QuickMedia.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<Tab> &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<VideoPlayer> video_player; bool use_youtube_dl = false; + int video_max_height = 0; }; }
\ No newline at end of file |