-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathLecturePlayerViewController.h
58 lines (51 loc) · 2.1 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
//
// 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"
@interface LecturePlayerViewController : UIViewController <UITextFieldDelegate, UIAlertViewDelegate> {
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, retain) IBOutlet UISwitch *locationSwitch;
@property (nonatomic, retain) IBOutlet UIProgressView *progressView;
@property (nonatomic, retain) IBOutlet UITextField *privateDescriptionTextField;
@property (nonatomic, retain) IBOutlet UITextField *publicDescriptionTextField;
@property (nonatomic, retain) IBOutlet UITextField *nameTextField;
@property (nonatomic, retain) Recording* recording;
@property (nonatomic, retain) IBOutlet UILabel *durationLabel;
@property (nonatomic, retain) IBOutlet UILabel *currentTimeLabel;
@property (nonatomic, retain) NSTimer *playerUpdateTimer;
@property (nonatomic, retain) IBOutlet UISlider *playerSlider;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *playButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *stopButton;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *submitButton;
@property (nonatomic, retain) AVAudioPlayer* player;
- (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, retain) IBOutlet UILabel *submitLabel;
@end