Shaka Player Embedded
Main Page
Exported Types
+
Tutorials
Basic Tutorial
Network Filters
Internal Docs
+
Internal Class List
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
a
b
d
e
f
h
i
l
m
r
s
t
v
Enumerations
+
Enumerator
a
b
c
d
e
k
n
p
t
v
+
Properties
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
+
Related Functions
:
a
c
d
g
j
m
o
p
r
s
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
shaka
src
media
ios
av_text_track.mm
Go to the documentation of this file.
1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#include "
src/media/ios/av_text_track.h
"
16
17
namespace
shaka
{
18
namespace
media {
19
namespace
ios {
20
21
AvTextTrack::AvTextTrack
(AVPlayerItem *item, AVMediaSelectionGroup *group,
22
AVMediaSelectionOption *option)
23
:
AvMediaTrack
(item, group, option),
24
TextTrack
(
TextTrackKind
::
Subtitles
,
AvMediaTrack
::label,
AvMediaTrack
::language,
25
AvMediaTrack
::id) {}
26
27
AvTextTrack::~AvTextTrack
() {}
28
29
TextTrackMode
AvTextTrack::mode
()
const
{
30
if
(
enabled
())
31
return
TextTrackMode::Showing
;
32
else
33
return
TextTrackMode::Hidden
;
34
}
35
36
void
AvTextTrack::SetMode
(
TextTrackMode
mode
) {
37
SetEnabled
(mode ==
TextTrackMode::Showing
);
38
}
39
40
}
// namespace ios
41
}
// namespace media
42
}
// namespace shaka
shaka::media::TextTrack
Definition:
text_track.h:86
shaka::media::ios::AvMediaTrack::enabled
bool enabled() const override
Definition:
av_media_track.mm:48
shaka::media::TextTrackMode
TextTrackMode
Definition:
text_track.h:60
shaka::media::ios::AvMediaTrack
Definition:
av_media_track.h:30
shaka
Definition:
async_results.h:25
shaka::media::MediaTrackKind::Subtitles
shaka::media::TextTrackMode::Showing
shaka::media::ios::AvTextTrack::SetMode
void SetMode(TextTrackMode mode) override
Definition:
av_text_track.mm:36
shaka::media::TextTrackMode::Hidden
shaka::media::ios::AvMediaTrack::SetEnabled
void SetEnabled(bool enabled) override
Definition:
av_media_track.mm:52
av_text_track.h
shaka::media::TextTrackKind
TextTrackKind
Definition:
text_track.h:33
shaka::media::ios::AvTextTrack::mode
TextTrackMode mode() const override
Definition:
av_text_track.mm:29
shaka::media::ios::AvTextTrack::AvTextTrack
AvTextTrack(AVPlayerItem *item, AVMediaSelectionGroup *group, AVMediaSelectionOption *option)
Definition:
av_text_track.mm:21
shaka::media::ios::AvTextTrack::~AvTextTrack
~AvTextTrack() override
Definition:
av_text_track.mm:27
Generated by
1.8.13