2017-02-14 21:40:09 +00:00
|
|
|
#ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_CUE_H_
|
|
|
|
#define PACKAGER_MEDIA_FORMATS_WEBVTT_CUE_H_
|
|
|
|
|
2017-02-13 22:25:34 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "packager/media/base/media_sample.h"
|
|
|
|
|
|
|
|
namespace shaka {
|
|
|
|
namespace media {
|
|
|
|
|
|
|
|
// If comment is not empty, then this is metadata and other fields must
|
|
|
|
// be empty.
|
|
|
|
// Data that can be multiline are vector of strings.
|
|
|
|
struct Cue {
|
|
|
|
Cue();
|
|
|
|
~Cue();
|
|
|
|
|
|
|
|
std::string identifier;
|
|
|
|
uint64_t start_time;
|
|
|
|
uint64_t duration;
|
|
|
|
std::string settings;
|
|
|
|
|
2017-02-14 21:40:09 +00:00
|
|
|
// |payload| and |comment| may have trailing "\n" character.
|
|
|
|
std::string payload;
|
|
|
|
std::string comment;
|
|
|
|
};
|
2017-02-13 22:25:34 +00:00
|
|
|
|
|
|
|
} // namespace media
|
|
|
|
} // namespace shaka
|
2017-02-14 21:40:09 +00:00
|
|
|
|
|
|
|
#endif // PACKAGER_MEDIA_FORMATS_WEBVTT_CUE_H_
|