Explorar o código

VLCMediaListPlayer: add a pause selector

Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
f172f04f4d
Modificáronse 3 ficheiros con 8 adicións e 2 borrados
  1. 2 2
      Headers/Public/VLCMediaListPlayer.h
  2. 1 0
      NEWS
  3. 5 0
      Sources/VLCMediaListPlayer.m

+ 2 - 2
Headers/Public/VLCMediaListPlayer.h

@@ -58,10 +58,10 @@ typedef NSInteger VLCRepeatMode;
 - (id)initWithOptions:(NSArray *)options;
 
 /**
- * Basic play and stop are here. For other method, use the mediaPlayer.
- * This may change.
+ * Basic play, pause and stop are here. For other methods, use the mediaPlayer.
  */
 - (void)play;
+- (void)pause;
 - (void)stop;
 
 /**

+ 1 - 0
NEWS

@@ -22,6 +22,7 @@ New APIs:
   - added property: snapshotPosition to overwrite the default
 - VLCMediaListPlayer:
   - added initWithOptions selector matching VLCMediaPlayer's implementation
+  - added pause selector
 
 Modified API behavior:
 - VLCMediaPlayer:

+ 5 - 0
Sources/VLCMediaListPlayer.m

@@ -118,6 +118,11 @@
     libvlc_media_list_player_play(instance);
 }
 
+- (void)pause
+{
+    libvlc_media_list_player_pause(instance);
+}
+
 - (void)stop
 {
     libvlc_media_list_player_stop(instance);