2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use Streaming::Player in video messages playback.

This commit is contained in:
John Preston
2019-03-26 12:54:51 +04:00
parent 8aaa70a05a
commit 3bd1bbc77a
20 changed files with 255 additions and 499 deletions

View File

@@ -23,7 +23,6 @@ enum class Type;
namespace Media {
namespace Player {
class RoundController;
class FloatController;
class FloatDelegate;
} // namespace Player
@@ -138,7 +137,7 @@ private:
};
class Controller
class Controller
: public Navigation
, private base::Subscriber {
public:
@@ -252,13 +251,6 @@ public:
return this;
}
using RoundController = Media::Player::RoundController;
bool startRoundVideo(not_null<HistoryItem*> context);
RoundController *currentRoundVideo() const;
RoundController *roundVideo(not_null<const HistoryItem*> context) const;
RoundController *roundVideo(FullMsgId contextId) const;
void roundVideoFinished(not_null<RoundController*> video);
void setDefaultFloatPlayerDelegate(
not_null<Media::Player::FloatDelegate*> delegate);
void replaceFloatPlayerDelegate(
@@ -307,7 +299,6 @@ private:
std::deque<Dialogs::RowDescriptor> _chatEntryHistory;
int _chatEntryHistoryPosition = -1;
std::unique_ptr<RoundController> _roundVideo;
std::unique_ptr<Media::Player::FloatController> _floatPlayers;
Media::Player::FloatDelegate *_defaultFloatPlayerDelegate = nullptr;
Media::Player::FloatDelegate *_replacementFloatPlayerDelegate = nullptr;