seek position problems
Here is some issues i have found with VLCMediaPlayer
position
value issue
position
's value of VLCMediaPlayer
doesn't change after setting
NSLog(@"pre position:%.2f",self.player.position); //we suppose it's 0.1
self.player.position = 0.5; // then i set it to 0.5
NSLog(@"now position is %.2f",self.player.position); //it's still 0.1, but it should be 0.5
VLCMediaPlayerDelegate
issue
after setting a new value with position
, i need to know wether it successfully set and when it is updated.
i found the only delegate method got invoked is
- (void)mediaPlayerStateChanged:(NSNotification *)aNotification
and it may be invoked for many times after a single position
value setting with the same player's state
which is always VLCMediaPlayerStateBuffering
along with the same time
and position
values during those invokes.
I think it would be much better to invoke the other delegate method
- (void)mediaPlayerTimeChanged:(NSNotification *)aNotification
after the seeking position is updated, in this case i will know when the position
setting is updated