chromium/media/filters/pipeline_controller.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// TODO(sandersd): It may be easier to use this interface if |suspended_cb_| is
// executed when Suspend() is called while already suspended.
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) {}

// Note: Dispatch() may be called re-entrantly (by callbacks internally) or
// twice in a row (by OnPipelineStatus()).
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() {}

}  // namespace media