This commit is contained in:
Akkariin Meiko
2022-03-12 03:16:09 +08:00
Unverified
parent 12b76e0c7a
commit 27c4ec74a1
10075 changed files with 5122287 additions and 1 deletions
@@ -0,0 +1,28 @@
#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;
/* 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;
/* Set the pipeline to PLAYING */
-(void) play;
/* Set the pipeline to PAUSED */
-(void) pause;
/* Set the URI to be played */
-(void) setUri:(NSString*)uri;
/* Set the position to seek to, in milliseconds */
-(void) setPosition:(NSInteger)milliseconds;
@end