28 #ifndef NATIVE_PLAYER_SRC_PLAYER_ES_DASH_PLAYER_STREAM_MANAGER_H_ 29 #define NATIVE_PLAYER_SRC_PLAYER_ES_DASH_PLAYER_STREAM_MANAGER_H_ 37 #include "nacl_player/elementary_stream_listener.h" 38 #include "nacl_player/es_data_source.h" 39 #include "nacl_player/media_common.h" 40 #include "nacl_player/media_player.h" 41 #include "ppapi/cpp/instance.h" 79 class StreamManager :
public Samsung::NaClPlayer::ElementaryStreamListener,
80 public std::enable_shared_from_this<StreamManager> {
122 std::unique_ptr<MediaSegmentSequence> segment_sequence,
123 std::shared_ptr<Samsung::NaClPlayer::ESDataSource> es_data_source,
124 std::function<
void(
StreamType)> stream_configured_callback,
125 Samsung::NaClPlayer::DRMType drm_type =
126 Samsung::NaClPlayer::DRMType_Unknown);
138 std::unique_ptr<MediaSegmentSequence> segment_sequence);
151 Samsung::NaClPlayer::TimeTicks playback_time);
162 void OnNeedData(int32_t bytes_max)
override;
163 void OnEnoughData()
override;
164 void OnSeekData(Samsung::NaClPlayer::TimeTicks new_position)
override;
167 std::unique_ptr<Impl> pimpl_;
170 #endif // NATIVE_PLAYER_SRC_PLAYER_ES_DASH_PLAYER_STREAM_MANAGER_H_
StreamManager(pp::InstanceHandle instance, StreamType type)
bool Initialize(std::unique_ptr< MediaSegmentSequence > segment_sequence, std::shared_ptr< Samsung::NaClPlayer::ESDataSource > es_data_source, std::function< void(StreamType)> stream_configured_callback, Samsung::NaClPlayer::DRMType drm_type=Samsung::NaClPlayer::DRMType_Unknown)
Samsung::NaClPlayer::TimeTicks UpdateBuffer(Samsung::NaClPlayer::TimeTicks playback_time)
void SetMediaSegmentSequence(std::unique_ptr< MediaSegmentSequence > segment_sequence)