Browse Source

VLCMediaPlayer: mark implementation of mediaPlayerTimeChanged as optional as listing for the notification is fine, too

Felix Paul Kühne 11 years ago
parent
commit
330a2942ea
2 changed files with 17 additions and 6 deletions
  1. 9 6
      Headers/Public/VLCMediaPlayer.h
  2. 8 0
      NEWS

+ 9 - 6
Headers/Public/VLCMediaPlayer.h

@@ -68,12 +68,6 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  * to be trapped by delegated objects.
  */
 @protocol VLCMediaPlayerDelegate
-/**
- * Sent by the default notification center whenever the player's time has changed.
- * \details Discussion The value of aNotification is always an VLCMediaPlayerTimeChanged notification. You can retrieve
- * the VLCMediaPlayer object in question by sending object to aNotification.
- */
-- (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
 
 /**
  * Sent by the default notification center whenever the player's state has changed.
@@ -81,6 +75,15 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  * the VLCMediaPlayer object in question by sending object to aNotification.
  */
 - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
+
+@optional
+/**
+ * Sent by the default notification center whenever the player's time has changed.
+ * \details Discussion The value of aNotification is always an VLCMediaPlayerTimeChanged notification. You can retrieve
+ * the VLCMediaPlayer object in question by sending object to aNotification.
+ */
+- (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
+
 @end
 
 

+ 8 - 0
NEWS

@@ -1,3 +1,11 @@
+Next version:
+-------------
+
+Modified API behavior:
+- VLCMediaPlayer:
+  - implementing mediaPlayerTimeChanged is now optional
+
+
 Changes within VLCKit between 2.0.0 and 2.1.0:
 ----------------------------------------------
 The entire framework was relicensed to LGPL 2.1 or later as well as its