2013-05-09 16:07:30 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "GStreamerBackendDelegate.h"
|
|
|
|
|
|
|
|
@interface GStreamerBackend : NSObject
|
|
|
|
|
|
|
|
/* Initialization method. Pass the delegate that will take care of the UI.
|
|
|
|
* This delegate must implement the GStreamerBackendDelegate protocol.
|
|
|
|
* Pass also the UIView object that will hold the video window. */
|
|
|
|
-(id) init:(id) uiDelegate videoView:(UIView*) video_view;
|
|
|
|
|
2013-05-14 15:11:05 +00:00
|
|
|
/* Quit the main loop and free all resources, including the pipeline and
|
|
|
|
* the references to the ui delegate and the UIView used for rendering, so
|
|
|
|
* these objects can be deallocated. */
|
|
|
|
-(void) deinit;
|
|
|
|
|
2013-05-09 16:07:30 +00:00
|
|
|
/* Set the pipeline to PLAYING */
|
|
|
|
-(void) play;
|
|
|
|
|
|
|
|
/* Set the pipeline to PAUSED */
|
|
|
|
-(void) pause;
|
|
|
|
|
2013-05-14 15:11:05 +00:00
|
|
|
/* Set the URI to be played */
|
|
|
|
-(void) setUri:(NSString*)uri;
|
|
|
|
|
2013-05-17 09:46:48 +00:00
|
|
|
/* Set the position to seek to, in milliseconds */
|
|
|
|
-(void) setPosition:(NSInteger)milliseconds;
|
|
|
|
|
2013-05-09 16:07:30 +00:00
|
|
|
@end
|