Shaka Packager SDK
packager
media
base
text_track_config.h
1
// Copyright 2013 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 PACKAGER_MEDIA_BASE_TEXT_TRACK_CONFIG_H_
6
#define PACKAGER_MEDIA_BASE_TEXT_TRACK_CONFIG_H_
7
8
#include <string>
9
10
namespace
shaka
{
11
namespace
media {
12
13
// Specifies the varieties of text tracks.
14
enum
TextKind {
15
kTextSubtitles,
16
kTextCaptions,
17
kTextDescriptions,
18
kTextMetadata,
19
kTextNone
20
};
21
22
class
TextTrackConfig
{
23
public
:
24
TextTrackConfig
();
25
TextTrackConfig
(TextKind kind,
26
const
std::string& label,
27
const
std::string& language,
28
const
std::string&
id
);
29
30
// Returns true if all fields in |config| match this config.
31
bool
Matches(
const
TextTrackConfig
& config)
const
;
32
33
TextKind kind()
const
{
return
kind_; }
34
const
std::string& label()
const
{
return
label_; }
35
const
std::string& language()
const
{
return
language_; }
36
const
std::string& id()
const
{
return
id_; }
37
38
private
:
39
TextKind kind_;
40
std::string label_;
41
std::string language_;
42
std::string id_;
43
};
44
45
}
// namespace media
46
}
// namespace shaka
47
48
#endif
// PACKAGER_MEDIA_BASE_TEXT_TRACK_H_
shaka::media::TextTrackConfig
Definition:
text_track_config.h:22
shaka
All the methods that are virtual are virtual for mocking.
Definition:
crypto_flags.cc:66
Generated on Mon Nov 11 2024 19:07:10 for Shaka Packager SDK by
1.9.1