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

#include <stats.h>

Classes

class  Impl
 

Public Member Functions

 StateChange ()
 
 StateChange (js::StateChange &&internal)
 
 StateChange (const StateChange &)
 
 StateChange (StateChange &&)
 
 ~StateChange ()
 
StateChangeoperator= (const StateChange &)
 
StateChangeoperator= (StateChange &&)
 
double timestamp () const
 
const std::string & state () const
 
double duration () const
 
js::StateChange GetInternal () const
 

Detailed Description

Holds info about a state change that occurred.

Definition at line 82 of file stats.h.

Constructor & Destructor Documentation

§ StateChange() [1/4]

shaka::StateChange::StateChange ( )

Definition at line 94 of file stats.cc.

§ StateChange() [2/4]

shaka::StateChange::StateChange ( js::StateChange &&  internal)

Definition at line 95 of file stats.cc.

§ StateChange() [3/4]

shaka::StateChange::StateChange ( const StateChange )
default

§ StateChange() [4/4]

shaka::StateChange::StateChange ( StateChange &&  )
default

§ ~StateChange()

shaka::StateChange::~StateChange ( )

Definition at line 98 of file stats.cc.

Member Function Documentation

§ duration()

double shaka::StateChange::duration ( ) const

The number of seconds the player was in this state. If this is the last entry in the list, the player is still in this state, so the duration will continue to increase.

Definition at line 111 of file stats.cc.

§ GetInternal()

js::StateChange shaka::StateChange::GetInternal ( ) const

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

Definition at line 116 of file stats.cc.

§ operator=() [1/2]

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

§ operator=() [2/2]

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

§ state()

const std::string & shaka::StateChange::state ( ) const

The state the player entered. This could be 'buffering', 'playing', 'paused', or 'ended'.

Definition at line 107 of file stats.cc.

§ timestamp()

double shaka::StateChange::timestamp ( ) const

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

Definition at line 103 of file stats.cc.


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