2015-03-30 23:07:55 -06:00
|
|
|
#import "RCTVideoManager.h"
|
|
|
|
#import "RCTVideo.h"
|
|
|
|
#import "RCTBridge.h"
|
|
|
|
@import MediaPlayer;
|
|
|
|
|
|
|
|
@implementation RCTVideoManager
|
|
|
|
|
|
|
|
@synthesize bridge = _bridge;
|
|
|
|
|
|
|
|
- (UIView *)view
|
|
|
|
{
|
|
|
|
return [[RCTVideo alloc] init];
|
|
|
|
}
|
|
|
|
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(src, NSString);
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(resizeMode, NSInteger);
|
2015-03-31 00:29:15 -06:00
|
|
|
RCT_EXPORT_VIEW_PROPERTY(repeat, BOOL);
|
2015-03-30 23:07:55 -06:00
|
|
|
|
|
|
|
- (NSDictionary *)constantsToExport
|
|
|
|
{
|
|
|
|
return @{@"ScaleNone": @(MPMovieScalingModeNone),
|
|
|
|
@"ScaleToFill": @(MPMovieScalingModeFill),
|
|
|
|
@"ScaleAspectFit": @(MPMovieScalingModeAspectFit),
|
|
|
|
@"ScaleAspectFill": @(MPMovieScalingModeAspectFill)};
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|