diff options
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r-- | plugins/Matrix.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
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<Tab> &result_tabs) override { - (void)title; - (void)url; - (void)result_tabs; - return PluginResult::ERR; + std::unique_ptr<RelatedVideosPage> create_related_videos_page(Program*, const std::string&, const std::string&) override { + return nullptr; + } + std::unique_ptr<LazyFetchPage> create_channels_page(Program*, const std::string&) override { + return nullptr; } - PageTypez get_type() const override { return PageTypez::VIDEO; } }; class MatrixChatPage : public Page { |