#ifndef MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_
#define MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_
#include <vector>
#include "media/base/audio_decoder_config.h"
#include "media/base/decrypt_config.h"
#include "media/base/demuxer_stream.h"
#include "media/base/media_export.h"
#include "media/base/video_decoder_config.h"
#include "ui/gfx/size.h"
namespace media {
struct MEDIA_EXPORT DemuxerConfigs {
DemuxerConfigs();
~DemuxerConfigs();
AudioCodec audio_codec;
int audio_channels;
int audio_sampling_rate;
bool is_audio_encrypted;
std::vector<uint8> audio_extra_data;
VideoCodec video_codec;
gfx::Size video_size;
bool is_video_encrypted;
std::vector<uint8> video_extra_data;
int duration_ms;
};
struct MEDIA_EXPORT AccessUnit {
AccessUnit();
~AccessUnit();
DemuxerStream::Status status;
bool end_of_stream;
std::vector<uint8> data;
base::TimeDelta timestamp;
std::vector<char> key_id;
std::vector<char> iv;
std::vector<media::SubsampleEntry> subsamples;
};
struct MEDIA_EXPORT DemuxerData {
DemuxerData();
~DemuxerData();
DemuxerStream::Type type;
std::vector<AccessUnit> access_units;
};
};
#endif