/// /// JHybridVideoPlayerSourceFactorySpec.cpp /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © 2025 Marc Rousavy @ Margelo /// #include "JHybridVideoPlayerSourceFactorySpec.hpp" // Forward declaration of `HybridVideoPlayerSourceSpec` to properly resolve imports. namespace margelo::nitro::video { class HybridVideoPlayerSourceSpec; } // Forward declaration of `NativeVideoConfig` to properly resolve imports. namespace margelo::nitro::video { struct NativeVideoConfig; } // Forward declaration of `NativeExternalSubtitle` to properly resolve imports. namespace margelo::nitro::video { struct NativeExternalSubtitle; } // Forward declaration of `SubtitleType` to properly resolve imports. namespace margelo::nitro::video { enum class SubtitleType; } // Forward declaration of `NativeDrmParams` to properly resolve imports. namespace margelo::nitro::video { struct NativeDrmParams; } // Forward declaration of `OnGetLicensePayload` to properly resolve imports. namespace margelo::nitro::video { struct OnGetLicensePayload; } // Forward declaration of `BufferConfig` to properly resolve imports. namespace margelo::nitro::video { struct BufferConfig; } // Forward declaration of `LivePlaybackParams` to properly resolve imports. namespace margelo::nitro::video { struct LivePlaybackParams; } // Forward declaration of `Resolution` to properly resolve imports. namespace margelo::nitro::video { struct Resolution; } // Forward declaration of `CustomVideoMetadata` to properly resolve imports. namespace margelo::nitro::video { struct CustomVideoMetadata; } #include #include "HybridVideoPlayerSourceSpec.hpp" #include "JHybridVideoPlayerSourceSpec.hpp" #include #include "NativeVideoConfig.hpp" #include "JNativeVideoConfig.hpp" #include "NativeExternalSubtitle.hpp" #include #include #include "JNativeExternalSubtitle.hpp" #include "SubtitleType.hpp" #include "JSubtitleType.hpp" #include "NativeDrmParams.hpp" #include "JNativeDrmParams.hpp" #include #include #include "OnGetLicensePayload.hpp" #include #include "JFunc_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload.hpp" #include #include "JOnGetLicensePayload.hpp" #include "BufferConfig.hpp" #include "JBufferConfig.hpp" #include "LivePlaybackParams.hpp" #include "JLivePlaybackParams.hpp" #include "Resolution.hpp" #include "JResolution.hpp" #include "CustomVideoMetadata.hpp" #include "JCustomVideoMetadata.hpp" namespace margelo::nitro::video { jni::local_ref JHybridVideoPlayerSourceFactorySpec::initHybrid(jni::alias_ref jThis) { return makeCxxInstance(jThis); } void JHybridVideoPlayerSourceFactorySpec::registerNatives() { registerHybrid({ makeNativeMethod("initHybrid", JHybridVideoPlayerSourceFactorySpec::initHybrid), }); } size_t JHybridVideoPlayerSourceFactorySpec::getExternalMemorySize() noexcept { static const auto method = javaClassStatic()->getMethod("getMemorySize"); return method(_javaPart); } void JHybridVideoPlayerSourceFactorySpec::dispose() noexcept { static const auto method = javaClassStatic()->getMethod("dispose"); method(_javaPart); } // Properties // Methods std::shared_ptr JHybridVideoPlayerSourceFactorySpec::fromUri(const std::string& uri) { static const auto method = javaClassStatic()->getMethod(jni::alias_ref /* uri */)>("fromUri"); auto __result = method(_javaPart, jni::make_jstring(uri)); return __result->cthis()->shared_cast(); } std::shared_ptr JHybridVideoPlayerSourceFactorySpec::fromVideoConfig(const NativeVideoConfig& config) { static const auto method = javaClassStatic()->getMethod(jni::alias_ref /* config */)>("fromVideoConfig"); auto __result = method(_javaPart, JNativeVideoConfig::fromCpp(config)); return __result->cthis()->shared_cast(); } } // namespace margelo::nitro::video