Sha256: 3faddc451c1bc611b6c018374c6435659ad27a368a6583ca4a0473765cf9d5bc

Contents?: true

Size: 1.38 KB

Versions: 17

Compression:

Stored size: 1.38 KB

Contents

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

#include "ruby/ext/rho/rhoruby.h"


#define VIDEO_CAPTURE_DURATION @"duration"
#define VIDEO_CAPTURE_DESTINATION @"destination"
#define VIDEO_CAPTURE_NAME @"name"
#define VIDEO_CAPTURE_SAVE_EVENT @"videoSaveEvent"

@interface RhoVideoCapture: NSObject <UIImagePickerControllerDelegate> {
    
    NSString* callbackURL;
    int duration;
    NSString* destination;
    BOOL isSaveFile;
    UIImagePickerController* moviePickerController;
    
    NSString* recorderFilePath;
}

@property (readwrite, copy) NSString *callbackURL;
@property (readwrite, copy) NSString *destination;
@property (readwrite, copy) NSString *recorderFilePath;
@property (readwrite, assign) int duration;
@property (readwrite, assign) UIImagePickerController* moviePickerController;

+ (RhoVideoCapture*) getInstance;

- (VALUE) getProperty:(NSString*)property_name;

- (void) setProperty:(NSString*)property_name value:(NSString*)value;

- (void) start;

- (void) stop;

- (void) cancel;

- (void) fireCallback:(NSString*)status param_name:(NSString*)param_name param_value:(NSString*)param_value;

// UIImagePickerControllerDelegate
- (void) imagePickerControllerDidCancel: (UIImagePickerController *) picker;
- (void) imagePickerController: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) info;

@end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-7.5.1 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-7.4.1 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-7.1.17 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-6.2.0 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-6.0.11 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.18 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.17 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.15 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.0.22 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.2 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.0.7 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.0.3 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
rhodes-5.5.0 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
tauplatform-1.0.3 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
tauplatform-1.0.2 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h
tauplatform-1.0.1 lib/extensions/videocapture/ext/videocapture/platform/iphone/Classes/Videocapture.h