#include "media/filters/pipeline_controller.h"
#include "base/functional/bind.h"
#include "media/base/demuxer.h"
namespace media {
PipelineController::PipelineController(std::unique_ptr<Pipeline> pipeline,
PipelineStatusCB started_cb,
SeekedCB seeked_cb,
SuspendedCB suspended_cb,
BeforeResumeCB before_resume_cb,
ResumedCB resumed_cb,
PipelineStatusCB error_cb)
: … { … }
PipelineController::~PipelineController() { … }
void PipelineController::Start(Pipeline::StartType start_type,
Demuxer* demuxer,
Pipeline::Client* client,
bool is_streaming,
bool is_static) { … }
void PipelineController::Seek(base::TimeDelta time, bool time_updated) { … }
void PipelineController::Suspend() { … }
void PipelineController::Resume() { … }
void PipelineController::OnDecoderStateLost() { … }
bool PipelineController::IsStable() { … }
bool PipelineController::IsPendingSeek() { … }
bool PipelineController::IsSuspended() { … }
bool PipelineController::IsPipelineSuspended() { … }
void PipelineController::OnPipelineStatus(State expected_state,
PipelineStatus pipeline_status) { … }
void PipelineController::Dispatch() { … }
void PipelineController::Stop() { … }
bool PipelineController::IsPipelineRunning() const { … }
double PipelineController::GetPlaybackRate() const { … }
void PipelineController::SetPlaybackRate(double playback_rate) { … }
float PipelineController::GetVolume() const { … }
void PipelineController::SetVolume(float volume) { … }
void PipelineController::SetLatencyHint(
std::optional<base::TimeDelta> latency_hint) { … }
void PipelineController::SetPreservesPitch(bool preserves_pitch) { … }
void PipelineController::SetWasPlayedWithUserActivation(
bool was_played_with_user_activation) { … }
base::TimeDelta PipelineController::GetMediaTime() const { … }
Ranges<base::TimeDelta> PipelineController::GetBufferedTimeRanges() const { … }
base::TimeDelta PipelineController::GetMediaDuration() const { … }
bool PipelineController::DidLoadingProgress() { … }
PipelineStatistics PipelineController::GetStatistics() const { … }
void PipelineController::SetCdm(CdmContext* cdm_context,
CdmAttachedCB cdm_attached_cb) { … }
void PipelineController::OnEnabledAudioTracksChanged(
const std::vector<MediaTrack::Id>& enabled_track_ids) { … }
void PipelineController::OnSelectedVideoTrackChanged(
std::optional<MediaTrack::Id> selected_track_id) { … }
void PipelineController::OnExternalVideoFrameRequest() { … }
void PipelineController::FireOnTrackChangeCompleteForTesting(State set_to) { … }
void PipelineController::OnTrackChangeComplete() { … }
}