Shaka Player Embedded
Classes | Public Member Functions | List of all members
shaka::TrackChoice Class Referencefinal

#include <stats.h>

Classes

class  Impl
 

Public Member Functions

 TrackChoice ()
 
 TrackChoice (js::TrackChoice &&internal)
 
 TrackChoice (const TrackChoice &)
 
 TrackChoice (TrackChoice &&)
 
 ~TrackChoice ()
 
TrackChoiceoperator= (const TrackChoice &)
 
TrackChoiceoperator= (TrackChoice &&)
 
double timestamp () const
 
double id () const
 
const std::string & type () const
 
bool from_adaptation () const
 
shaka::optional< double > bandwidth () const
 
js::TrackChoice GetInternal () const
 

Detailed Description

Holds info about a track selection choice that was made.

Definition at line 42 of file stats.h.

Constructor & Destructor Documentation

§ TrackChoice() [1/4]

shaka::TrackChoice::TrackChoice ( )

Definition at line 40 of file stats.cc.

§ TrackChoice() [2/4]

shaka::TrackChoice::TrackChoice ( js::TrackChoice &&  internal)

Definition at line 41 of file stats.cc.

§ TrackChoice() [3/4]

shaka::TrackChoice::TrackChoice ( const TrackChoice )
default

§ TrackChoice() [4/4]

shaka::TrackChoice::TrackChoice ( TrackChoice &&  )
default

§ ~TrackChoice()

shaka::TrackChoice::~TrackChoice ( )

Definition at line 44 of file stats.cc.

Member Function Documentation

§ bandwidth()

shaka::optional< double > shaka::TrackChoice::bandwidth ( ) const

The bandwidth of the chosen track (null for text).

Definition at line 65 of file stats.cc.

§ from_adaptation()

bool shaka::TrackChoice::from_adaptation ( ) const

True if the choice was made by AbrManager for adaptation; false if it was made by the application through selectTrack.

Definition at line 61 of file stats.cc.

§ GetInternal()

js::TrackChoice shaka::TrackChoice::GetInternal ( ) const

INTERNAL USE ONLY: Get the internal representation of this object.

Definition at line 70 of file stats.cc.

§ id()

double shaka::TrackChoice::id ( ) const

The id of the track that was chosen.

Definition at line 53 of file stats.cc.

§ operator=() [1/2]

TrackChoice & shaka::TrackChoice::operator= ( const TrackChoice )
default

§ operator=() [2/2]

TrackChoice & shaka::TrackChoice::operator= ( TrackChoice &&  )
default

§ timestamp()

double shaka::TrackChoice::timestamp ( ) const

The timestamp the choice was made, in seconds since 1970 (i.e. Date.now() / 1000).

Definition at line 49 of file stats.cc.

§ type()

const std::string & shaka::TrackChoice::type ( ) const

The type of track chosen ('variant' or 'text').

Definition at line 57 of file stats.cc.


The documentation for this class was generated from the following files: