#include "media/base/media_url_demuxer.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/demuxer.h"
#include "net/storage_access_api/status.h"
namespace media {
MediaUrlDemuxer::MediaUrlDemuxer(
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
const GURL& media_url,
const net::SiteForCookies& site_for_cookies,
const url::Origin& top_frame_origin,
net::StorageAccessApiStatus storage_access_api_status,
bool allow_credentials,
bool is_hls)
: … { … }
MediaUrlDemuxer::~MediaUrlDemuxer() = default;
std::vector<DemuxerStream*> MediaUrlDemuxer::GetAllStreams() { … }
const MediaUrlParams& MediaUrlDemuxer::GetMediaUrlParams() const { … }
MediaResource::Type MediaUrlDemuxer::GetType() const { … }
std::string MediaUrlDemuxer::GetDisplayName() const { … }
DemuxerType MediaUrlDemuxer::GetDemuxerType() const { … }
void MediaUrlDemuxer::ForwardDurationChangeToDemuxerHost(
base::TimeDelta duration) { … }
void MediaUrlDemuxer::SetHeaders(
base::flat_map<std::string, std::string> headers) { … }
void MediaUrlDemuxer::Initialize(DemuxerHost* host,
PipelineStatusCallback status_cb) { … }
void MediaUrlDemuxer::StartWaitingForSeek(base::TimeDelta seek_time) { … }
void MediaUrlDemuxer::CancelPendingSeek(base::TimeDelta seek_time) { … }
void MediaUrlDemuxer::Seek(base::TimeDelta time,
PipelineStatusCallback status_cb) { … }
bool MediaUrlDemuxer::IsSeekable() const { … }
void MediaUrlDemuxer::Stop() { … }
void MediaUrlDemuxer::AbortPendingReads() { … }
base::TimeDelta MediaUrlDemuxer::GetStartTime() const { … }
base::Time MediaUrlDemuxer::GetTimelineOffset() const { … }
int64_t MediaUrlDemuxer::GetMemoryUsage() const { … }
std::optional<container_names::MediaContainerName>
MediaUrlDemuxer::GetContainerForMetrics() const { … }
void MediaUrlDemuxer::OnEnabledAudioTracksChanged(
const std::vector<MediaTrack::Id>& track_ids,
base::TimeDelta curr_time,
TrackChangeCB change_completed_cb) { … }
void MediaUrlDemuxer::OnSelectedVideoTrackChanged(
const std::vector<MediaTrack::Id>& track_ids,
base::TimeDelta curr_time,
TrackChangeCB change_completed_cb) { … }
}