Shaka Player Embedded
Public Member Functions | Public Attributes | List of all members
shaka::js::mse::MediaError Class Reference

#include <media_error.h>

Inheritance diagram for shaka::js::mse::MediaError:
shaka::BackingObject shaka::memory::Traceable

Public Member Functions

 MediaError (MediaErrorCode code, const std::string &message)
 
- Public Member Functions inherited from shaka::BackingObject
 BackingObject ()
 
void Trace (memory::HeapTracer *tracer) const override
 
bool IsRootedAlive () const override
 
std::string name () const
 
virtual BackingObjectFactoryBasefactory () const =0
 
bool DerivedFrom (const std::string &base)
 
ReturnVal< JsValue > JsThis () const
 
void SetJsThis (Handle< JsObject > this_)
 
- Public Member Functions inherited from shaka::memory::Traceable
virtual ~Traceable ()
 
virtual bool IsShortLived () const
 

Public Attributes

const MediaErrorCode code
 
const std::string message
 

Additional Inherited Members

- Static Public Member Functions inherited from shaka::BackingObject
static void * operator new[] (size_t size)=delete
 
static void operator delete[] (void *)=delete
 
- Static Public Attributes inherited from shaka::BackingObject
static constexpr const size_t kInternalFieldCount = 2
 
- Static Public Attributes inherited from shaka::memory::Traceable
static constexpr const uint64_t kShortLiveDurationMs = 5000
 
- Protected Member Functions inherited from shaka::BackingObject
 ~BackingObject () override
 

Detailed Description

An error in a media element.

See also
https://html.spec.whatwg.org/multipage/media.html#mediaerror

Definition at line 39 of file media_error.h.

Constructor & Destructor Documentation

§ MediaError()

shaka::js::mse::MediaError::MediaError ( MediaErrorCode  code,
const std::string &  message 
)

Definition at line 21 of file media_error.cc.

Member Data Documentation

§ code

const MediaErrorCode shaka::js::mse::MediaError::code

Definition at line 45 of file media_error.h.

§ message

const std::string shaka::js::mse::MediaError::message

Definition at line 46 of file media_error.h.


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