Shaka Player Embedded
|
Namespaces | |
eme | |
impl | |
js | |
media | |
memory | |
proto | |
util | |
Typedefs | |
template<size_t I, typename Variant > | |
using | variant_alternative_t = typename variant_alternative< I, Variant >::type |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Error &error) |
template<class A , class B > | |
bool | operator== (const optional< A > &lhs, const optional< B > &rhs) |
template<class A , class B > | |
bool | operator!= (const optional< A > &lhs, const optional< B > &rhs) |
template<class A , class B > | |
bool | operator< (const optional< A > &lhs, const optional< B > &rhs) |
template<class A , class B > | |
bool | operator<= (const optional< A > &lhs, const optional< B > &rhs) |
template<class A , class B > | |
bool | operator> (const optional< A > &lhs, const optional< B > &rhs) |
template<class A , class B > | |
bool | operator>= (const optional< A > &lhs, const optional< B > &rhs) |
template<class T > | |
bool | operator== (const optional< T > &opt, nullopt_t) |
template<class T > | |
bool | operator== (nullopt_t, const optional< T > &opt) |
template<class T > | |
bool | operator!= (const optional< T > &opt, nullopt_t) |
template<class T > | |
bool | operator!= (nullopt_t, const optional< T > &opt) |
template<class T > | |
bool | operator< (const optional< T > &opt, nullopt_t) |
template<class T > | |
bool | operator< (nullopt_t, const optional< T > &opt) |
template<class T > | |
bool | operator<= (const optional< T > &opt, nullopt_t) |
template<class T > | |
bool | operator<= (nullopt_t, const optional< T > &opt) |
template<class T > | |
bool | operator> (const optional< T > &opt, nullopt_t) |
template<class T > | |
bool | operator> (nullopt_t, const optional< T > &opt) |
template<class T > | |
bool | operator>= (const optional< T > &opt, nullopt_t) |
template<class T > | |
bool | operator>= (nullopt_t, const optional< T > &opt) |
template<class A , class B > | |
bool | operator== (const optional< A > &opt, const B &value) |
template<class A , class B > | |
bool | operator== (const A &value, const optional< B > &opt) |
template<class A , class B > | |
bool | operator!= (const optional< A > &opt, const B &value) |
template<class A , class B > | |
bool | operator!= (const A &value, const optional< B > &opt) |
template<class A , class B > | |
bool | operator< (const optional< A > &opt, const B &value) |
template<class A , class B > | |
bool | operator< (const A &value, const optional< B > &opt) |
template<class A , class B > | |
bool | operator<= (const optional< A > &opt, const B &value) |
template<class A , class B > | |
bool | operator<= (const A &value, const optional< B > &opt) |
template<class A , class B > | |
bool | operator> (const optional< A > &opt, const B &value) |
template<class A , class B > | |
bool | operator> (const A &value, const optional< B > &opt) |
template<class A , class B > | |
bool | operator>= (const optional< A > &opt, const B &value) |
template<class A , class B > | |
bool | operator>= (const A &value, const optional< B > &opt) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const ShakaRect< T > &rect) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Rational< T > &bar) |
template<typename T , typename U , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
Rational< typename std::common_type< T, U >::type > | operator* (T a, const Rational< U > &b) |
template<typename T , typename U , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
Rational< typename std::common_type< T, U >::type > | operator/ (T a, const Rational< U > &b) |
void | FitVideoToRegion (ShakaRect< uint32_t > frame, ShakaRect< uint32_t > bounds, Rational< uint32_t > sample_aspect_ratio, VideoFillMode mode, ShakaRect< uint32_t > *src, ShakaRect< uint32_t > *dest) |
std::string | EscapeKeySystem (const std::string &key_system) |
std::string | LicenseServerConfig (const std::string &key_system) |
std::string | AdvancedDrmConfig (const std::string &key_system, const std::string &property) |
template<typename... Choices> | |
bool | operator== (const variant< Choices... > &lhs, const variant< Choices... > &rhs) |
template<typename... Choices> | |
bool | operator!= (const variant< Choices... > &lhs, const variant< Choices... > &rhs) |
template<typename T , typename... Choices> | |
bool | holds_alternative (const variant< Choices... > &variant) |
template<size_t I, typename... Choices> | |
impl::get_const_reference_at_t< I, Choices... > | get (const variant< Choices... > &variant) |
template<size_t I, typename... Choices> | |
variant_alternative_t< I, variant< Choices... > > & | get (variant< Choices... > &variant) |
template<typename T , typename... Choices> | |
const T & | get (const variant< Choices... > &variant) |
template<typename T , typename... Choices> | |
T & | get (variant< Choices... > &variant) |
template<typename T , typename... Choices> | |
T && | get (variant< Choices... > &&variant) |
template<size_t I, typename... Choices> | |
std::add_const< variant_alternative_t< I, variant< Choices... > > >::type * | get_if (const variant< Choices... > &variant) |
template<size_t I, typename... Choices> | |
variant_alternative_t< I, variant< Choices... > > * | get_if (variant< Choices... > &variant) |
template<typename T , typename... Choices> | |
const T * | get_if (const variant< Choices... > &variant) |
template<typename T , typename... Choices> | |
T * | get_if (variant< Choices... > &variant) |
void | RegisterDefaultKeySystems () |
template<typename... Args> | |
std::function< void(Args...)> | MainThreadCallback (std::function< void(Args...)> cb) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, RefPtr< T > arg) |
bool | operator== (const ByteBuffer &lhs, const ByteBuffer &rhs) |
bool | operator!= (const ByteBuffer &lhs, const ByteBuffer &rhs) |
template<typename T > | |
bool | FromJsValue (Handle< JsValue > source, T *dest) |
template<typename T > | |
ReturnVal< JsValue > | ToJsValue (T &&source) |
ReturnVal< JsValue > | GetDescendant (Handle< JsObject > root, const std::vector< std::string > &names) |
void | HandleNetworkFuture (Promise promise, std::future< optional< Error >> future, std::function< void()> on_done) |
template<typename T , typename... Args> | |
RefPtr< T > | MakeJsRef (Args &&... args) |
size_t | ArgumentCount (const CallbackArguments &arguments) |
std::vector< std::string > | GetMemberNames (Handle< JsObject > object) |
ReturnVal< JsValue > | GetMemberRaw (Handle< JsObject > object, const std::string &name, LocalVar< JsValue > *exception=nullptr) |
ReturnVal< JsValue > | GetArrayIndexRaw (Handle< JsObject > object, size_t index, LocalVar< JsValue > *exception=nullptr) |
void | SetMemberRaw (Handle< JsObject > object, const std::string &name, Handle< JsValue > value) |
void | SetArrayIndexRaw (Handle< JsObject > object, size_t i, Handle< JsValue > value) |
void | SetGenericPropertyRaw (Handle< JsObject > object, const std::string &name, Handle< JsFunction > getter, Handle< JsFunction > setter) |
bool | InvokeConstructor (Handle< JsFunction > ctor, int argc, LocalVar< JsValue > *argv, LocalVar< JsValue > *result_or_except) |
bool | InvokeMethod (Handle< JsFunction > method, Handle< JsObject > that, int argc, LocalVar< JsValue > *argv, LocalVar< JsValue > *result_or_except) |
std::string | ConvertToString (Handle< JsValue > value) |
ReturnVal< JsValue > | WrapPointer (void *ptr) |
void * | MaybeUnwrapPointer (Handle< JsValue > value) |
BackingObject * | GetInternalPointer (Handle< JsValue > value) |
bool | IsDerivedFrom (BackingObject *ptr, const std::string &name) |
bool | RunScript (const std::string &path) |
bool | RunScript (const std::string &path, const uint8_t *data, size_t data_size) |
ReturnVal< JsValue > | ParseJsonString (const std::string &json) |
ReturnVal< JsString > | JsStringFromUtf8 (const std::string &str) |
ReturnVal< JsString > | JsStringFromUtf8 (const uint8_t *data, size_t size) |
ReturnVal< JsValue > | JsUndefined () |
ReturnVal< JsValue > | JsNull () |
ReturnVal< JsObject > | CreateArray (size_t length) |
ReturnVal< JsObject > | CreateObject () |
ReturnVal< JsMap > | CreateMap () |
void | SetMapValue (Handle< JsMap > map, Handle< JsValue > key, Handle< JsValue > value) |
bool | IsNullOrUndefined (Handle< JsValue > value) |
bool | IsObject (Handle< JsValue > value) |
bool | IsBuiltInObject (Handle< JsObject > object) |
proto::ValueType | GetValueType (Handle< JsValue > value) |
size_t | ArrayLength (Handle< JsObject > value) |
double | NumberFromValue (Handle< JsValue > value) |
bool | BooleanFromValue (Handle< JsValue > value) |
JSContextRef | GetContext () |
void | OnUncaughtException (JSValueRef exception, bool in_promise) |
JSValueRef | CreateNativeObject (const std::string &name, JSValueRef *args, size_t argc) |
template<typename Func > | |
ReturnVal< JsFunction > | CreateStaticFunction (const std::string &target, const std::string &name, Func &&callback) |
template<typename Func > | |
ReturnVal< JsFunction > | CreateMemberFunction (const std::string &target, const std::string &name, Func &&callback) |
template<typename Func > | |
void | RegisterGlobalFunction (const std::string &name, Func &&callback) |
v8::Isolate * | GetIsolate () |
void | PrintStackTrace (const v8::Local< v8::StackTrace > &stack) |
void | OnUncaughtException (const v8::Local< v8::Value > &exception, bool in_promise) |
bool | IsTrue (const v8::Maybe< bool > &value) |
template<typename Dest > | |
ReturnVal< Dest > | UnsafeJsCast (Handle< JsValue > source) |
template<typename T > | |
ReturnVal< JsValue > | RawToJsValue (Handle< T > source) |
Variables | |
const nullopt_t | nullopt = nullopt_t(0) |
const DefaultValueType | DefaultValue |
using shaka::variant_alternative_t = typedef typename variant_alternative<I, Variant>::type |
enum shaka::ExceptionCode |
Definition at line 22 of file exception_code.h.
|
strong |
|
strong |
Enumerator | |
---|---|
Timer | |
Internal | |
Events | |
Immediate |
Definition at line 37 of file task_runner.h.
|
inline |
This defines several types that are used to represent JavaScript values.
Handle<T> represents a handle to a JavaScript value. LocalVar<T> represents a local variable that holds a JavaScript value. ReturnVal<T> is a JavaScript value that is returned from a C++ function. This is NOT a Handle<T>.
For compatibility, you should not pass a ReturnVal<T> as an argument. Store it in a LocalVar<T> first before passing. Also, different types should be incompatible with each other (i.e. a JsString is not a JsValue).
Definition at line 209 of file js_wrappers.h.
|
inline |
Definition at line 418 of file js_wrappers.h.
bool shaka::BooleanFromValue | ( | Handle< JsValue > | value | ) |
Definition at line 394 of file js_wrappers.cc.
std::string shaka::ConvertToString | ( | Handle< JsValue > | value | ) |
Definition at line 203 of file js_wrappers.cc.
ReturnVal< JsObject > shaka::CreateArray | ( | size_t | length | ) |
Definition at line 292 of file js_wrappers.cc.
ReturnVal< JsMap > shaka::CreateMap | ( | ) |
Definition at line 300 of file js_wrappers.cc.
ReturnVal<JsFunction> shaka::CreateMemberFunction | ( | const std::string & | target, |
const std::string & | name, | ||
Func && | callback | ||
) |
Definition at line 617 of file register_member.h.
JSValueRef shaka::CreateNativeObject | ( | const std::string & | name, |
JSValueRef * | args, | ||
size_t | argc | ||
) |
Definition at line 40 of file jsc_utils.cc.
ReturnVal< JsObject > shaka::CreateObject | ( | ) |
Definition at line 296 of file js_wrappers.cc.
ReturnVal<JsFunction> shaka::CreateStaticFunction | ( | const std::string & | target, |
const std::string & | name, | ||
Func && | callback | ||
) |
Creates a new JavaScript function object that will call the given C++ callback when it is called. This will convert the JavaScript arguments into their C++ values and throw JavaScript errors if there are invalid arguments. This callback can throw an instance of JsError to be converted to a JavaScript exception. The callback will be invoked on the event thread.
target | The name of the |this| object, used for exception messages. |
name | The name of the function, used for exception messages. |
callback | The callback to invoke. |
Definition at line 604 of file register_member.h.
bool shaka::FromJsValue | ( | Handle< JsValue > | source, |
T * | dest | ||
) |
Tries to convert the given JavaScript value to the given type.
source | The JavaScript object to convert. |
dest | [OUT] Where to put the converted value, not changed if there is an error. |
Definition at line 370 of file convert_js.h.
impl::get_const_reference_at_t<I, Choices...> shaka::get | ( | const variant< Choices... > & | variant | ) |
variant_alternative_t<I, variant<Choices...> >& shaka::get | ( | variant< Choices... > & | variant | ) |
const T& shaka::get | ( | const variant< Choices... > & | variant | ) |
T& shaka::get | ( | variant< Choices... > & | variant | ) |
T&& shaka::get | ( | variant< Choices... > && | variant | ) |
std::add_const<variant_alternative_t<I, variant<Choices...> > >::type* shaka::get_if | ( | const variant< Choices... > & | variant | ) |
variant_alternative_t<I, variant<Choices...> >* shaka::get_if | ( | variant< Choices... > & | variant | ) |
const T* shaka::get_if | ( | const variant< Choices... > & | variant | ) |
T* shaka::get_if | ( | variant< Choices... > & | variant | ) |
ReturnVal< JsValue > shaka::GetArrayIndexRaw | ( | Handle< JsObject > | object, |
size_t | index, | ||
LocalVar< JsValue > * | exception = nullptr |
||
) |
Definition at line 142 of file js_wrappers.cc.
JSContextRef shaka::GetContext | ( | ) |
Definition at line 24 of file jsc_utils.cc.
ReturnVal< JsValue > shaka::GetDescendant | ( | Handle< JsObject > | root, |
const std::vector< std::string > & | names | ||
) |
Traverses a namespace/object structure to get a descendant member. This will repeatedly get the child of the current object with a name from names, starting at root. This will return an empty value if one of the children isn't found or isn't an object.
root | The object to start traversing at. |
names | The member names to traverse with. |
Definition at line 52 of file js_utils.cc.
BackingObject * shaka::GetInternalPointer | ( | Handle< JsValue > | value | ) |
Definition at line 223 of file js_wrappers.cc.
v8::Isolate * shaka::GetIsolate | ( | ) |
Gets the current Isolate instance, checking that we are in a valid state. V8 must be ready first, meaning that this must be the event thread or we are being initialized (event loop is stopped).
Definition at line 27 of file v8_utils.cc.
std::vector< std::string > shaka::GetMemberNames | ( | Handle< JsObject > | object | ) |
Get the properties of the current object. This will only return the properties on 'this' and not on the prototype.
object | The object of interest. |
Definition at line 118 of file js_wrappers.cc.
ReturnVal< JsValue > shaka::GetMemberRaw | ( | Handle< JsObject > | object, |
const std::string & | name, | ||
LocalVar< JsValue > * | exception = nullptr |
||
) |
Definition at line 136 of file js_wrappers.cc.
proto::ValueType shaka::GetValueType | ( | Handle< JsValue > | value | ) |
Definition at line 329 of file js_wrappers.cc.
void shaka::HandleNetworkFuture | ( | Promise | promise, |
std::future< optional< Error >> | future, | ||
std::function< void()> | on_done | ||
) |
Handles watching the given future to finish, reports any errors to the promise, and calls the given callback when (and if) the future resolves with success. The callback will always be invoked on the JS main thread.
Definition at line 68 of file js_utils.cc.
bool shaka::holds_alternative | ( | const variant< Choices... > & | variant | ) |
bool shaka::InvokeConstructor | ( | Handle< JsFunction > | ctor, |
int | argc, | ||
LocalVar< JsValue > * | argv, | ||
LocalVar< JsValue > * | result_or_except | ||
) |
Calls the given function as a constructor and gives the resulting object or the exception that was thrown.
ctor | The constructor to call. |
argc | The number of arguments to pass in. |
argv | The array of arguments to pass in. |
result_or_except | [OUT] Will contain the resulting object or the exception that was thrown. |
Definition at line 165 of file js_wrappers.cc.
bool shaka::InvokeMethod | ( | Handle< JsFunction > | method, |
Handle< JsObject > | that, | ||
int | argc, | ||
LocalVar< JsValue > * | argv, | ||
LocalVar< JsValue > * | result_or_except | ||
) |
Calls the given function and gives the resulting return value or the exception that was thrown.
method | The method to call. |
that | The value that should be |this| in the call. |
argc | The number of arguments to pass in. |
argv | The array of arguments to pass in. |
result_or_except | [OUT] Will contain the resulting object or the exception that was thrown. |
Definition at line 182 of file js_wrappers.cc.
bool shaka::IsBuiltInObject | ( | Handle< JsObject > | object | ) |
Definition at line 319 of file js_wrappers.cc.
bool shaka::IsDerivedFrom | ( | BackingObject * | ptr, |
const std::string & | name | ||
) |
Gets whether the given object derives from the given type name. This exists so RefPtr<T> can check this without needing the BackingObject header.
Definition at line 235 of file js_wrappers.cc.
bool shaka::IsNullOrUndefined | ( | Handle< JsValue > | value | ) |
Definition at line 311 of file js_wrappers.cc.
bool shaka::IsObject | ( | Handle< JsValue > | value | ) |
Definition at line 315 of file js_wrappers.cc.
|
inline |
Definition at line 32 of file v8_utils.h.
ReturnVal< JsValue > shaka::JsNull | ( | ) |
Definition at line 288 of file js_wrappers.cc.
ReturnVal< JsString > shaka::JsStringFromUtf8 | ( | const std::string & | str | ) |
Definition at line 266 of file js_wrappers.cc.
ReturnVal< JsString > shaka::JsStringFromUtf8 | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 277 of file js_wrappers.cc.
ReturnVal< JsValue > shaka::JsUndefined | ( | ) |
Definition at line 284 of file js_wrappers.cc.
std::function<void(Args...)> shaka::MainThreadCallback | ( | std::function< void(Args...)> | cb | ) |
Creates a callback that, when invoked, will invoke the given callback on the main thread.
Definition at line 87 of file js_manager_impl.h.
RefPtr<T> shaka::MakeJsRef | ( | Args &&... | args | ) |
Allocates a new heap object of the given type that is managed by the ObjectTracker. This allows non-Backing objects (e.g. Callback) to be managed using RefPtr<T>.
Definition at line 52 of file js_utils.h.
void * shaka::MaybeUnwrapPointer | ( | Handle< JsValue > | value | ) |
Definition at line 217 of file js_wrappers.cc.
double shaka::NumberFromValue | ( | Handle< JsValue > | value | ) |
Definition at line 385 of file js_wrappers.cc.
void shaka::OnUncaughtException | ( | JSValueRef | exception, |
bool | in_promise | ||
) |
Definition at line 28 of file jsc_utils.cc.
void shaka::OnUncaughtException | ( | const v8::Local< v8::Value > & | exception, |
bool | in_promise | ||
) |
Called when an uncaught exception occurs. Prints information about the given exception.
Definition at line 47 of file v8_utils.cc.
|
inline |
Definition at line 112 of file byte_buffer.h.
bool shaka::operator!= | ( | const optional< A > & | lhs, |
const optional< B > & | rhs | ||
) |
Definition at line 214 of file optional.h.
Definition at line 246 of file optional.h.
Definition at line 250 of file optional.h.
bool shaka::operator!= | ( | const optional< A > & | opt, |
const B & | value | ||
) |
Definition at line 295 of file optional.h.
bool shaka::operator!= | ( | const A & | value, |
const optional< B > & | opt | ||
) |
Definition at line 299 of file optional.h.
bool shaka::operator< | ( | const optional< A > & | lhs, |
const optional< B > & | rhs | ||
) |
Definition at line 218 of file optional.h.
Definition at line 254 of file optional.h.
Definition at line 258 of file optional.h.
bool shaka::operator< | ( | const optional< A > & | opt, |
const B & | value | ||
) |
Definition at line 303 of file optional.h.
bool shaka::operator< | ( | const A & | value, |
const optional< B > & | opt | ||
) |
Definition at line 307 of file optional.h.
|
inline |
std::ostream& shaka::operator<< | ( | std::ostream & | os, |
RefPtr< T > | arg | ||
) |
bool shaka::operator<= | ( | const optional< A > & | lhs, |
const optional< B > & | rhs | ||
) |
Definition at line 225 of file optional.h.
Definition at line 262 of file optional.h.
Definition at line 266 of file optional.h.
bool shaka::operator<= | ( | const optional< A > & | opt, |
const B & | value | ||
) |
Definition at line 311 of file optional.h.
bool shaka::operator<= | ( | const A & | value, |
const optional< B > & | opt | ||
) |
Definition at line 315 of file optional.h.
|
inline |
Definition at line 108 of file byte_buffer.h.
bool shaka::operator== | ( | const optional< A > & | lhs, |
const optional< B > & | rhs | ||
) |
Definition at line 207 of file optional.h.
Definition at line 238 of file optional.h.
Definition at line 242 of file optional.h.
bool shaka::operator== | ( | const optional< A > & | opt, |
const B & | value | ||
) |
Definition at line 287 of file optional.h.
bool shaka::operator== | ( | const A & | value, |
const optional< B > & | opt | ||
) |
Definition at line 291 of file optional.h.
bool shaka::operator> | ( | const optional< A > & | lhs, |
const optional< B > & | rhs | ||
) |
Definition at line 229 of file optional.h.
Definition at line 270 of file optional.h.
Definition at line 274 of file optional.h.
bool shaka::operator> | ( | const optional< A > & | opt, |
const B & | value | ||
) |
Definition at line 319 of file optional.h.
bool shaka::operator> | ( | const A & | value, |
const optional< B > & | opt | ||
) |
Definition at line 323 of file optional.h.
bool shaka::operator>= | ( | const optional< A > & | lhs, |
const optional< B > & | rhs | ||
) |
Definition at line 233 of file optional.h.
Definition at line 278 of file optional.h.
Definition at line 282 of file optional.h.
bool shaka::operator>= | ( | const optional< A > & | opt, |
const B & | value | ||
) |
Definition at line 327 of file optional.h.
bool shaka::operator>= | ( | const A & | value, |
const optional< B > & | opt | ||
) |
Definition at line 331 of file optional.h.
ReturnVal< JsValue > shaka::ParseJsonString | ( | const std::string & | json | ) |
Parses the given string as JSON and returns the given value.
json | The input string. |
Definition at line 256 of file js_wrappers.cc.
void shaka::PrintStackTrace | ( | const v8::Local< v8::StackTrace > & | stack | ) |
Prints the given stack trace to stderr.
Definition at line 31 of file v8_utils.cc.
ReturnVal<JsValue> shaka::RawToJsValue | ( | Handle< T > | source | ) |
Converts the given value, object, or string into a value type.
Definition at line 405 of file js_wrappers.h.
void shaka::RegisterDefaultKeySystems | ( | ) |
void shaka::RegisterGlobalFunction | ( | const std::string & | name, |
Func && | callback | ||
) |
Registers a static function on the global object. This is a static function and will ignore |this|.
name | The name of the function (used for errors). |
callback | The callback function to call. |
Definition at line 632 of file register_member.h.
bool shaka::RunScript | ( | const std::string & | path | ) |
Reads a JavaScript file from the given path and executes it in the current isolate.
path | The file path to the JavaScript file. |
Definition at line 239 of file js_wrappers.cc.
bool shaka::RunScript | ( | const std::string & | path, |
const uint8_t * | data, | ||
size_t | data_size | ||
) |
Executes the given JavaScript code in the current isolate.
path | The file path to the JavaScript file. This is only used for logging. |
data | The contents of the file. |
data_size | The number of bytes in |data|. |
Definition at line 251 of file js_wrappers.cc.
void shaka::SetArrayIndexRaw | ( | Handle< JsObject > | object, |
size_t | i, | ||
Handle< JsValue > | value | ||
) |
Sets the member at the given index of the given object.
Definition at line 152 of file js_wrappers.cc.
void shaka::SetGenericPropertyRaw | ( | Handle< JsObject > | object, |
const std::string & | name, | ||
Handle< JsFunction > | getter, | ||
Handle< JsFunction > | setter | ||
) |
Adds a generic property on the given object.
Definition at line 158 of file js_wrappers.cc.
void shaka::SetMapValue | ( | Handle< JsMap > | map, |
Handle< JsValue > | key, | ||
Handle< JsValue > | value | ||
) |
Sets the value of the given key in the given map. This is not the same as SetMemberRaw.
Definition at line 304 of file js_wrappers.cc.
void shaka::SetMemberRaw | ( | Handle< JsObject > | object, |
const std::string & | name, | ||
Handle< JsValue > | value | ||
) |
Sets the given member on the given object.
Definition at line 147 of file js_wrappers.cc.
ReturnVal<JsValue> shaka::ToJsValue | ( | T && | source | ) |
Converts the given C++ object to a JavaScript value.
source | The C++ object to convert. |
Definition at line 381 of file convert_js.h.
ReturnVal<Dest> shaka::UnsafeJsCast | ( | Handle< JsValue > | source | ) |
Converts the given value to a different type. This only performs debug assertions that the type is correct, the caller should check the type beforehand (e.g. by using GetValueType).
Definition at line 382 of file js_wrappers.h.
ReturnVal< JsValue > shaka::WrapPointer | ( | void * | ptr | ) |
Definition at line 213 of file js_wrappers.cc.
BEGIN_ALLOW_COMPLEX_STATICS const nullopt_t shaka::nullopt = nullopt_t(0) |
Definition at line 22 of file optional.cc.