DASH Media Packaging SDK
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
media
base
text_track.h
1
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef MEDIA_BASE_TEXT_TRACK_H_
6
#define MEDIA_BASE_TEXT_TRACK_H_
7
8
#include <memory>
9
#include <string>
10
11
#include "packager/base/callback.h"
12
#include "packager/base/time/time.h"
13
14
namespace
shaka {
15
namespace
media {
16
18
enum
TextKind {
19
kTextSubtitles,
20
kTextCaptions,
21
kTextDescriptions,
22
kTextMetadata,
23
kTextNone
24
};
25
26
class
TextTrack
{
27
public
:
28
~
TextTrack
()
override
{}
29
virtual
void
addWebVTTCue(
const
base::TimeDelta& start,
30
const
base::TimeDelta& end,
31
const
std::string&
id
,
32
const
std::string& content,
33
const
std::string& settings) = 0;
34
};
35
36
typedef
base::Callback<std::unique_ptr<TextTrack>(TextKind kind,
37
const
std::string& label,
38
const
std::string& language)>
39
AddTextTrackCB;
40
41
}
// namespace media
42
}
// namespace shaka
43
44
#endif // MEDIA_BASE_TEXT_TRACK_H_
shaka::media::TextTrack
Definition:
text_track.h:26
Generated on Mon May 15 2017 22:39:23 for DASH Media Packaging SDK by
1.8.6