H A D | avplayer_napi.cpp | 122 napi_status status = napi_define_class(env, CLASS_NAME.c_str(), NAPI_AUTO_LENGTH, Constructor, nullptr, in Init() local 124 CHECK_AND_RETURN_RET_LOG(status == napi_ok, nullptr, "Failed to define AVPlayer class"); in Init() 126 status = napi_create_reference(env, constructor, 1, &constructor_); in Init() 127 CHECK_AND_RETURN_RET_LOG(status == napi_ok, nullptr, "Failed to create reference of constructor"); in Init() 129 status = napi_set_named_property(env, exports, CLASS_NAME.c_str(), constructor); in Init() 130 CHECK_AND_RETURN_RET_LOG(status == napi_ok, nullptr, "Failed to set constructor"); in Init() 132 status = napi_define_properties(env, exports, sizeof(staticProperty) / sizeof(staticProperty[0]), staticProperty); in Init() 133 CHECK_AND_RETURN_RET_LOG(status == napi_ok, nullptr, "Failed to define static function"); in Init() 144 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() local 145 CHECK_AND_RETURN_RET_LOG(status in Constructor() 206 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); JsCreateAVPlayer() local 724 napi_status status = napi_get_value_int32(env, args[0], &time); JsSeek() local 887 napi_status status = napi_get_value_int32(env, args[0], &mode); JsSetSpeed() local 937 napi_status status = napi_get_value_double(env, args[0], &volumeLevel); JsSetVolume() local 981 napi_status status = napi_get_value_int32(env, args[0], &bitrate); JsSelectBitrate() local 1081 napi_status status = napi_get_value_int32(env, args[0], &subtitleFd); JsAddSubtitleAVFileDescriptor() local 1235 napi_status status = napi_get_value_bool(env, args[1], &svp); JsSetDecryptConfig() local 1298 napi_status status = napi_create_array_with_length(env, jsPlayer->localDrmInfos_.size(), &napiMap); JsGetMediaKeySystemInfos() local 1686 napi_status status = napi_create_reference(env, callback, 1, &ref); JsSetDataSrc() local 1861 napi_status status = napi_get_value_bool(env, args[0], &jsPlayer->loop_); JsSetLoop() local 1920 napi_status status = napi_get_value_int32(env, args[0], &videoScaleType); JsSetVideoScaleType() local 1982 napi_status status = napi_get_value_int32(env, args[0], &interruptMode); JsSetAudioInterruptMode() local 2046 napi_status status = napi_get_value_int32(env, args[0], &effectMode); JsSetAudioEffectMode() local 2481 napi_status status = napi_get_value_int32(env, args[0], &jsPlayer->index_); HandleSelectTrack() local 2573 napi_status status = napi_get_value_int32(env, args[0], &index); JsDeselectTrack() local 2651 napi_status status = napi_get_value_int32(env, args, &trackType); GetCurrentTrackTask() local 2755 napi_status status = napi_create_reference(env, args[1], 1, &ref); JsSetOnCallback() local 2939 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); GetJsInstance() local 2953 napi_status status = napi_get_cb_info(env, info, &argc, argv, &jsThis, nullptr); GetJsInstanceWithParameter() local [all...] |