-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVideoController.h
55 lines (42 loc) · 1.32 KB
/
VideoController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// VideoController.h
// Tumblor
//
// Created by orta on 20/07/2008.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <QTKit/QTKit.h>
#import <iMediaBrowser/iMediaBrowser.h>
@interface VideoController : NSObject {
IBOutlet QTCaptureView * videoCaptureView;
IBOutlet QTMovieView * videoRecordingMovieView;
IBOutlet NSView * qtContentView;
IBOutlet NSView * videoContainerView;
IBOutlet NSWindow * sheet;
IBOutlet NSButton * recordButton;
IBOutlet QTMovieView * videoMovieView;
IBOutlet NSTextField * captionTextField;
IBOutlet NSWindow * mainWindow;
QTCaptureSession *mCaptureSession;
QTCaptureMovieFileOutput *mCaptureMovieFileOutput;
QTCaptureDeviceInput *mCaptureVideoDeviceInput;
QTCaptureDeviceInput *mCaptureAudioDeviceInput;
NSString * _filepath;
bool _isRecording;
bool _isViewing;
bool _firstRecorderLoad;
bool _movieViewActive;
@private
id <iMediaBrowser> videoView;
}
- (void) setSource : (NSString *) path;
- (void) setCaption : (NSString *) caption;
- (IBAction)toggleRecording:(id)sender;
- (IBAction)startRecordingSheet:(id)sender;
- (IBAction)saveAndEndSheet:(id)sender;
- (IBAction)cancelRecordingSheet:(id)sender;
- (void) hasBecomeKeyView;
- (void) resignedAsKeyView;
- (void) stopCapture;
@end