2013-05-09 16:07:30 +00:00
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "GStreamerBackendDelegate.h"
|
|
|
|
|
2013-05-14 15:11:05 +00:00
|
|
|
@interface VideoViewController : UIViewController <GStreamerBackendDelegate> {
|
2013-05-09 16:07:30 +00:00
|
|
|
IBOutlet UILabel *message_label;
|
|
|
|
IBOutlet UIBarButtonItem *play_button;
|
|
|
|
IBOutlet UIBarButtonItem *pause_button;
|
|
|
|
IBOutlet UIView *video_view;
|
|
|
|
IBOutlet UIView *video_container_view;
|
|
|
|
IBOutlet NSLayoutConstraint *video_width_constraint;
|
|
|
|
IBOutlet NSLayoutConstraint *video_height_constraint;
|
2013-05-16 15:39:15 +00:00
|
|
|
IBOutlet UIToolbar *toolbar;
|
|
|
|
IBOutlet UITextField *time_label;
|
|
|
|
IBOutlet UISlider *time_slider;
|
2013-05-09 16:07:30 +00:00
|
|
|
}
|
|
|
|
|
2013-05-14 15:11:05 +00:00
|
|
|
@property (retain,nonatomic) NSString *uri;
|
|
|
|
|
2013-05-09 16:07:30 +00:00
|
|
|
-(IBAction) play:(id)sender;
|
|
|
|
-(IBAction) pause:(id)sender;
|
2013-05-17 09:46:48 +00:00
|
|
|
-(IBAction) sliderValueChanged:(id)sender;
|
|
|
|
-(IBAction) sliderTouchDown:(id)sender;
|
|
|
|
-(IBAction) sliderTouchUp:(id)sender;
|
2013-05-09 16:07:30 +00:00
|
|
|
|
|
|
|
/* From GStreamerBackendDelegate */
|
|
|
|
-(void) gstreamerInitialized;
|
|
|
|
-(void) gstreamerSetUIMessage:(NSString *)message;
|
|
|
|
|
|
|
|
@end
|