mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
50 lines
1.6 KiB
Plaintext
Generated
50 lines
1.6 KiB
Plaintext
Generated
///
|
|
/// ReactNativeVideoAutolinking.mm
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © Marc Rousavy @ Margelo
|
|
///
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <NitroModules/HybridObjectRegistry.hpp>
|
|
#import "ReactNativeVideo-Swift-Cxx-Umbrella.hpp"
|
|
#import <type_traits>
|
|
|
|
#include "HybridVideoPlayerFactorySpecSwift.hpp"
|
|
#include "HybridVideoPlayerSourceFactorySpecSwift.hpp"
|
|
#include "HybridVideoViewViewManagerFactorySpecSwift.hpp"
|
|
|
|
@interface ReactNativeVideoAutolinking : NSObject
|
|
@end
|
|
|
|
@implementation ReactNativeVideoAutolinking
|
|
|
|
+ (void) load {
|
|
using namespace margelo::nitro;
|
|
using namespace margelo::nitro::video;
|
|
|
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
"VideoPlayerFactory",
|
|
[]() -> std::shared_ptr<HybridObject> {
|
|
std::shared_ptr<HybridVideoPlayerFactorySpec> hybridObject = ReactNativeVideo::ReactNativeVideoAutolinking::createVideoPlayerFactory();
|
|
return hybridObject;
|
|
}
|
|
);
|
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
"VideoPlayerSourceFactory",
|
|
[]() -> std::shared_ptr<HybridObject> {
|
|
std::shared_ptr<HybridVideoPlayerSourceFactorySpec> hybridObject = ReactNativeVideo::ReactNativeVideoAutolinking::createVideoPlayerSourceFactory();
|
|
return hybridObject;
|
|
}
|
|
);
|
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
"VideoViewViewManagerFactory",
|
|
[]() -> std::shared_ptr<HybridObject> {
|
|
std::shared_ptr<HybridVideoViewViewManagerFactorySpec> hybridObject = ReactNativeVideo::ReactNativeVideoAutolinking::createVideoViewViewManagerFactory();
|
|
return hybridObject;
|
|
}
|
|
);
|
|
}
|
|
|
|
@end
|