Home
last modified time | relevance | path

Searched refs:deviceChangeRef (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Davplayer_callback.cpp548 std::shared_ptr<AutoRef> deviceChangeRef = callback.lock(); in UvWork() local
549 …CHECK_AND_RETURN_LOG(deviceChangeRef != nullptr, "%{public}s AutoRef is nullptr", callbackName.c_s… in UvWork()
552 napi_open_handle_scope(deviceChangeRef->env_, &scope); in UvWork()
555 napi_close_handle_scope(deviceChangeRef->env_, scope); in UvWork()
559 …napi_status status = napi_get_reference_value(deviceChangeRef->env_, deviceChangeRef->cb_, &jsCall… in UvWork()
565 napi_create_object(deviceChangeRef->env_, &args[0]); in UvWork()
567 status = CommonNapi::SetValueDeviceInfo(deviceChangeRef->env_, deviceInfo, deviceObj); in UvWork()
570 napi_set_named_property(deviceChangeRef->env_, args[0], "devices", deviceObj); in UvWork()
572 bool res = CommonNapi::SetPropertyInt32(deviceChangeRef->env_, args[0], "changeReason", in UvWork()
578 … status = napi_call_function(deviceChangeRef->env_, nullptr, jsCallback, argCount, args, &result); in UvWork()