1 #import <Foundation/Foundation.h>
2 #import "GStreamerBackendDelegate.h"
4 @interface GStreamerBackend : NSObject
6 /* Initialization method. Pass the delegate that will take care of the UI.
7 * This delegate must implement the GStreamerBackendDelegate protocol.
8 * Pass also the UIView object that will hold the video window. */
9 -(id) init:(id) uiDelegate videoView:(UIView*) video_view;
11 /* Quit the main loop and free all resources, including the pipeline and
12 * the references to the ui delegate and the UIView used for rendering, so
13 * these objects can be deallocated. */
16 /* Set the pipeline to PLAYING */
19 /* Set the pipeline to PAUSED */
22 /* Set the URI to be played */
23 -(void) setUri:(NSString*)uri;
25 /* Set the position to seek to, in milliseconds */
26 -(void) setPosition:(NSInteger)milliseconds;