7 #ifndef PACKAGER_MEDIA_BASE_TRICK_PLAY_HANDLER_H_
8 #define PACKAGER_MEDIA_BASE_TRICK_PLAY_HANDLER_H_
10 #include "packager/media/base/media_handler.h"
43 Status Process(std::unique_ptr<StreamData> stream_data)
override;
49 friend class TrickPlayHandlerTest;
56 Status ProcessCachedStreamData(
57 int output_stream_index,
58 std::deque<std::shared_ptr<StreamData>>* cached_stream_data);
65 Status ProcessOneStreamData(
int output_stream_index,
66 const std::shared_ptr<StreamData>& stream_data);
74 uint32_t total_key_frames_ = 0;
79 int64_t prev_sample_end_timestamp_ = 0;
88 std::vector<std::deque<std::shared_ptr<StreamData>>> cached_stream_data_;
94 #endif // PACKAGER_MEDIA_BASE_TRICK_PLAY_HANDLER_H_