f16ea7016fd577facb7fcf300abea472e46a648c
[platform/upstream/gstreamer.git] / tutorials / xcode iOS / Tutorial 4 / GStreamerBackend.h
1 #import <Foundation/Foundation.h>
2 #import "GStreamerBackendDelegate.h"
3
4 @interface GStreamerBackend : NSObject
5
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;
10
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. */
14 -(void) deinit;
15
16 /* Set the pipeline to PLAYING */
17 -(void) play;
18
19 /* Set the pipeline to PAUSED */
20 -(void) pause;
21
22 /* Set the URI to be played */
23 -(void) setUri:(NSString*)uri;
24
25 /* Set the position to seek to, in milliseconds */
26 -(void) setPosition:(NSInteger)milliseconds;
27
28 @end