forked from chrisballinger/Cop-Recorder-iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
LecturePlayerViewController.h
61 lines (54 loc) · 2.18 KB
/
LecturePlayerViewController.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
56
57
58
59
60
61
//
// LecturePlayerViewController.h
// LectureLeaks
//
// Created by Christopher Ballinger on 6/9/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "Recording.h"
#import "ACLUConfirmUpload.h"
@interface LecturePlayerViewController : UIViewController <UITextFieldDelegate, UIAlertViewDelegate,ACLUConfirmUploadDelegate> {
Recording* recording;
int duration;
BOOL isPlaying;
AVAudioPlayer* player;
UILabel *durationLabel;
UILabel *currentTimeLabel;
NSTimer *playerUpdateTimer;
UISlider *playerSlider;
UIBarButtonItem *playButton;
UIBarButtonItem *stopButton;
UIBarButtonItem *submitButton;
UITextField *nameTextField;
UITextField *publicDescriptionTextField;
UITextField *privateDescriptionTextField;
UIProgressView *progressView;
UILabel *submitLabel;
UISwitch *locationSwitch;
}
@property (nonatomic) IBOutlet UISwitch *locationSwitch;
@property (nonatomic) IBOutlet UIProgressView *progressView;
@property (nonatomic) IBOutlet UITextField *privateDescriptionTextField;
@property (nonatomic) IBOutlet UITextField *publicDescriptionTextField;
@property (nonatomic) IBOutlet UITextField *nameTextField;
@property (nonatomic) Recording* recording;
@property (nonatomic) IBOutlet UILabel *durationLabel;
@property (nonatomic) IBOutlet UILabel *currentTimeLabel;
@property (nonatomic) NSTimer *playerUpdateTimer;
@property (nonatomic) IBOutlet UISlider *playerSlider;
@property (nonatomic) IBOutlet UIBarButtonItem *playButton;
@property (nonatomic) IBOutlet UIBarButtonItem *stopButton;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *submitButton;
@property (nonatomic) AVAudioPlayer* player;
@property (nonatomic,strong) IBOutlet UITextField *emailTextField;
@property (nonatomic,strong) IBOutlet UIScrollView *fieldsScrollView;
- (IBAction)submitPressed:(id)sender;
- (IBAction)playPressed:(id)sender;
- (IBAction)stopPressed:(id)sender;
- (void) updateElapsedTime:(NSTimer *) timer;
- (void) updateLabel:(UILabel*)label withTime:(NSTimeInterval)time;
- (IBAction)seek:(id)sender;
@property (nonatomic) IBOutlet UILabel *submitLabel;
@end