From b6b972e2dae816a8f0686f4986029a5ed50e592c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 4 Nov 2020 01:30:38 +0100 Subject: Add channels page to related videos menu, fix related videos menu broken after video failing to load --- plugins/Matrix.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'plugins/Matrix.hpp') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 20ad7da..e7131b0 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -356,17 +356,16 @@ namespace QuickMedia { }; // Dummy, only play one video. TODO: Play all videos in room, as related videos? - class MatrixVideoPage : public Page { + class MatrixVideoPage : public VideoPage { public: - MatrixVideoPage(Program *program) : Page(program) {} + MatrixVideoPage(Program *program) : VideoPage(program) {} const char* get_title() const override { return ""; } - PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override { - (void)title; - (void)url; - (void)result_tabs; - return PluginResult::ERR; + std::unique_ptr create_related_videos_page(Program*, const std::string&, const std::string&) override { + return nullptr; + } + std::unique_ptr create_channels_page(Program*, const std::string&) override { + return nullptr; } - PageTypez get_type() const override { return PageTypez::VIDEO; } }; class MatrixChatPage : public Page { -- cgit v1.2.3