Shaka Player Embedded
|
#include <text_track.h>
Classes | |
class | Client |
class | Impl |
Public Member Functions | |
TextTrack (TextTrackKind kind, const std::string &label, const std::string &language, const std::string &id) | |
virtual | ~TextTrack () |
TextTrack (const TextTrack &)=delete | |
TextTrack & | operator= (const TextTrack &)=delete |
TextTrack (TextTrack &&)=delete | |
TextTrack & | operator= (TextTrack &&)=delete |
virtual TextTrackMode | mode () const |
virtual void | SetMode (TextTrackMode mode) |
virtual std::vector< std::shared_ptr< VTTCue > > | cues () const |
virtual std::vector< std::shared_ptr< VTTCue > > | active_cues (double time) const |
double | NextCueChangeTime (double time) const |
virtual void | AddCue (std::shared_ptr< VTTCue > cue) |
virtual void | RemoveCue (std::shared_ptr< VTTCue > cue) |
void | AddClient (Client *client) |
void | RemoveClient (Client *client) |
Public Attributes | |
const TextTrackKind | kind |
const std::string | label |
const std::string | language |
const std::string | id |
This defines a text track that stores text cues. This type can be subclassed to provide additional behavior, or can be used as-is as a list of cue objects.
This type is internally thread-safe.
Definition at line 86 of file text_track.h.
Doxygen_Skip shaka::media::TextTrack::TextTrack | ( | TextTrackKind | kind, |
const std::string & | label, | ||
const std::string & | language, | ||
const std::string & | id | ||
) |
Definition at line 41 of file text_track_public.cc.
|
virtual |
Definition at line 33 of file text_track.cc.
|
delete |
|
delete |
|
virtual |
Definition at line 62 of file text_track_public.cc.
void shaka::media::TextTrack::AddClient | ( | Client * | client | ) |
Adds the given client to receive calls for events.
Definition at line 103 of file text_track_public.cc.
|
virtual |
Adds the provided cue to the list of cues in the text track.
Definition at line 86 of file text_track_public.cc.
|
virtual |
Definition at line 57 of file text_track_public.cc.
|
virtual |
Reimplemented in shaka::media::ios::AvTextTrack.
Definition at line 46 of file text_track_public.cc.
double shaka::media::TextTrack::NextCueChangeTime | ( | double | time | ) | const |
Gets the time that the active cue list should change based on the current list of cues. This will be the nearest start or end time after the given time. This allows the app to delay polling until something is expected to change. This will return Infinity if there is nothing after time.
time | The media time to check. |
Definition at line 73 of file text_track_public.cc.
void shaka::media::TextTrack::RemoveClient | ( | Client * | client | ) |
Removes the given client from receiving calls for events.
Definition at line 108 of file text_track_public.cc.
|
virtual |
Removes the given cue from the list of cues.
Definition at line 94 of file text_track_public.cc.
|
virtual |
Sets the mode of the text track.
Reimplemented in shaka::media::ios::AvTextTrack.
Definition at line 51 of file text_track_public.cc.
const std::string shaka::media::TextTrack::id |
The id string of the text track.
Definition at line 120 of file text_track.h.
const TextTrackKind shaka::media::TextTrack::kind |
The kind of the text track.
Definition at line 111 of file text_track.h.
const std::string shaka::media::TextTrack::label |
The label string of the text track.
Definition at line 114 of file text_track.h.
const std::string shaka::media::TextTrack::language |
The language string of the text track.
Definition at line 117 of file text_track.h.