Shaka Player Embedded
|
#include <time_ranges.h>
Public Member Functions | |
TimeRanges (media::BufferedRanges ranges) | |
bool | IsShortLived () const override |
uint32_t | length () const |
ExceptionOr< double > | Start (uint32_t index) const |
ExceptionOr< double > | End (uint32_t index) const |
![]() | |
BackingObject () | |
void | Trace (memory::HeapTracer *tracer) const override |
bool | IsRootedAlive () const override |
std::string | name () const |
virtual BackingObjectFactoryBase * | factory () const =0 |
bool | DerivedFrom (const std::string &base) |
ReturnVal< JsValue > | JsThis () const |
void | SetJsThis (Handle< JsObject > this_) |
![]() | |
virtual | ~Traceable () |
Additional Inherited Members | |
![]() | |
static void * | operator new[] (size_t size)=delete |
static void | operator delete[] (void *)=delete |
![]() | |
static constexpr const size_t | kInternalFieldCount = 2 |
![]() | |
static constexpr const uint64_t | kShortLiveDurationMs = 5000 |
![]() | |
~BackingObject () override | |
Definition at line 27 of file time_ranges.h.
|
explicit |
Definition at line 37 of file time_ranges.cc.
ExceptionOr< double > shaka::js::mse::TimeRanges::End | ( | uint32_t | index | ) | const |
Definition at line 52 of file time_ranges.cc.
|
overridevirtual |
Gets whether the object is considered short-lived. This means that once the C++ ref-count is zero, the object won't remain alive for long. It is important to only set this if the JavaScript object won't be used for long.
This exists for JSC which doesn't offer a way for us to track whether a JavaScript object is still alive. If the JavaScript object is used after the backing object is destroyed, then a JavaScript exception will be thrown.
Reimplemented from shaka::memory::Traceable.
Definition at line 42 of file time_ranges.cc.
|
inline |
Definition at line 35 of file time_ranges.h.
ExceptionOr< double > shaka::js::mse::TimeRanges::Start | ( | uint32_t | index | ) | const |
Definition at line 46 of file time_ranges.cc.