Skip to content

Commit

Permalink
Merge pull request #20 from relivecc/rename-exportsession
Browse files Browse the repository at this point in the history
Rename export sesison to fix symbols error
  • Loading branch information
jochem725 authored Jan 9, 2020
2 parents 53512f1 + 0866be7 commit 12b4e54
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ios/RNPhotosFramework/PHVideoExporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ typedef void (^videoExporterProgressBlock)(float progress);
-(void (^_Nonnull)()) exportVideoWithAsset:(AVAsset *_Nonnull)avasset andDir:(NSString *_Nonnull)dir andFileName:(NSString *_Nonnull)fileName andPostProcessParams:(NSDictionary *_Nullable)params andProgressBlock:(videoExporterProgressBlock _Nonnull )progressBlock andCompletionBlock:(videoExporterCompleteBlock _Nonnull )completeBlock;

@property (nonatomic, copy) videoExporterProgressBlock _Nonnull progressBlock;
@property (strong, nonatomic) SDAVAssetExportSession * _Nullable encoder;
@property (strong, nonatomic) RNPhotosSDAVAssetExportSession * _Nullable encoder;
@end
2 changes: 1 addition & 1 deletion ios/RNPhotosFramework/PHVideoExporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ @implementation PHVideoExporter
}
}

self.encoder = [SDAVAssetExportSession.alloc initWithAsset:avasset];
self.encoder = [RNPhotosSDAVAssetExportSession.alloc initWithAsset:avasset];

[_encoder addObserver:self forKeyPath:@"progress" options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld context:nil];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// SDAVAssetExportSession.h
// RNPhotosSDAVAssetExportSession.h
//
// This file is part of the SDAVAssetExportSession package.
//
Expand All @@ -13,7 +13,7 @@
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@protocol SDAVAssetExportSessionDelegate;
@protocol RNPhotosSDAVAssetExportSessionDelegate;


/**
Expand All @@ -33,9 +33,9 @@
* about the reason for the failure.
*/

@interface SDAVAssetExportSession : NSObject
@interface RNPhotosSDAVAssetExportSession : NSObject

@property (nonatomic, weak) id<SDAVAssetExportSessionDelegate> delegate;
@property (nonatomic, weak) id<RNPhotosSDAVAssetExportSessionDelegate> delegate;

/**
* The asset with which the export session was initialized.
Expand Down Expand Up @@ -187,8 +187,8 @@
@end


@protocol SDAVAssetExportSessionDelegate <NSObject>
@protocol RNPhotosSDAVAssetExportSessionDelegate <NSObject>

- (void)exportSession:(SDAVAssetExportSession *)exportSession renderFrame:(CVPixelBufferRef)pixelBuffer withPresentationTime:(CMTime)presentationTime toBuffer:(CVPixelBufferRef)renderBuffer;
- (void)exportSession:(RNPhotosSDAVAssetExportSession *)exportSession renderFrame:(CVPixelBufferRef)pixelBuffer withPresentationTime:(CMTime)presentationTime toBuffer:(CVPixelBufferRef)renderBuffer;

@end
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// SDAVAssetExportSession.m
// RNPhotosSDAVAssetExportSession.m
//
// This file is part of the SDAVAssetExportSession package.
//
Expand All @@ -13,7 +13,7 @@

#import "SDAVAssetExportSession.h"

@interface SDAVAssetExportSession ()
@interface RNPhotosSDAVAssetExportSession ()

@property (nonatomic, assign, readwrite) float progress;

Expand All @@ -29,7 +29,7 @@ @interface SDAVAssetExportSession ()

@end

@implementation SDAVAssetExportSession
@implementation RNPhotosSDAVAssetExportSession
{
NSError *_error;
NSTimeInterval duration;
Expand All @@ -38,7 +38,7 @@ @implementation SDAVAssetExportSession

+ (id)exportSessionWithAsset:(AVAsset *)asset
{
return [SDAVAssetExportSession.alloc initWithAsset:asset];
return [RNPhotosSDAVAssetExportSession.alloc initWithAsset:asset];
}

- (id)initWithAsset:(AVAsset *)asset
Expand Down

0 comments on commit 12b4e54

Please sign in to comment.