瀏覽代碼

VLCMediaListPlayer: add a pause selector

Felix Paul Kühne 11 年之前
父節點
當前提交
f172f04f4d
共有 3 個文件被更改,包括 8 次插入2 次删除
  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);