Shaka Player Embedded
|
#include <av_text_track.h>
Public Member Functions | |
AvTextTrack (AVPlayerItem *item, AVMediaSelectionGroup *group, AVMediaSelectionOption *option) | |
~AvTextTrack () override | |
TextTrackMode | mode () const override |
void | SetMode (TextTrackMode mode) override |
![]() | |
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 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) |
Additional Inherited Members | |
![]() | |
const TextTrackKind | kind |
const std::string | label |
const std::string | language |
const std::string | id |
Defines a subclass of TextTrack that handles selecting the track. This allows selecting the resulting track for playback. This doesn't track individual cues since those aren't exposed through AVFoundation.
This subclasses AvMediaTrack to avoid code duplication for handling of the iOS track.
Definition at line 35 of file av_text_track.h.
shaka::media::ios::AvTextTrack::AvTextTrack | ( | AVPlayerItem * | item, |
AVMediaSelectionGroup * | group, | ||
AVMediaSelectionOption * | option | ||
) |
Definition at line 21 of file av_text_track.mm.
|
override |
Definition at line 27 of file av_text_track.mm.
|
overridevirtual |
Reimplemented from shaka::media::TextTrack.
Definition at line 29 of file av_text_track.mm.
|
overridevirtual |
Sets the mode of the text track.
Reimplemented from shaka::media::TextTrack.
Definition at line 36 of file av_text_track.mm.