Lines Matching refs:video
20 #include "video.h"
48 auto *video = new (std::nothrow) VideoNapi();
49 ASSERT_ERR(ctxt->env, video != nullptr, Status::E_ERROR, "no memory for video!");
50 video->value_ = std::make_shared<Video>();
51 ASSERT_CALL(env, napi_wrap(env, ctxt->self, video, Destructor, nullptr, nullptr), video);
59 auto *video = new (std::nothrow) VideoNapi();
60 ASSERT_ERR_VOID(env, video != nullptr, Status::E_ERROR, "no memory for video!");
61 video->value_ = std::static_pointer_cast<Video>(in);
62 ASSERT_CALL_DELETE(env, napi_wrap(env, out, video, Destructor, nullptr, nullptr), video);
68 auto *video = static_cast<VideoNapi *>(data);
69 ASSERT_VOID(video != nullptr, "finalize null!");
70 delete video;
85 auto video = GetVideo(env, info, ctxt);
87 ctxt->env, (video != nullptr && video->value_ != nullptr), Status::E_ERROR, "invalid object!");
88 ctxt->status = NapiDataUtils::SetValue(env, video->value_->GetUri(), ctxt->output);
89 ASSERT_ERR(ctxt->env, ctxt->status == napi_ok, Status::E_ERROR, "set video uri failed!");
107 auto video = static_cast<VideoNapi *>(ctxt->native);
109 ctxt->env, (video != nullptr && video->value_ != nullptr), Status::E_ERROR, "invalid object!");
110 video->value_->SetUri(uri);