#include "media/base/media_tracks.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/video_decoder_config.h"
namespace media {
MediaTracks::MediaTracks() = default;
MediaTracks::~MediaTracks() = default;
MediaTrack* MediaTracks::AddAudioTrack(
const AudioDecoderConfig& config,
bool enabled,
StreamParser::TrackId bytestream_track_id,
const MediaTrack::Kind& kind,
const MediaTrack::Label& label,
const MediaTrack::Language& language) { … }
MediaTrack* MediaTracks::AddVideoTrack(
const VideoDecoderConfig& config,
bool enabled,
StreamParser::TrackId bytestream_track_id,
const MediaTrack::Kind& kind,
const MediaTrack::Label& label,
const MediaTrack::Language& language) { … }
const AudioDecoderConfig& MediaTracks::getAudioConfig(
StreamParser::TrackId bytestream_track_id) const { … }
const VideoDecoderConfig& MediaTracks::getVideoConfig(
StreamParser::TrackId bytestream_track_id) const { … }
}