Commit 70812fdc authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Export -gotoNextFrame.

parent 0cd9960f
......@@ -242,6 +242,11 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
*/
- (void)stop;
/**
* Advance one frame.
*/
- (void)gotoNextFrame;
/**
* Fast forwards through the feed at the standard 1x rate.
*/
......
......@@ -396,7 +396,11 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
libvlc_exception_t ex;
libvlc_exception_init( &ex );
float result = libvlc_media_player_get_rate( instance, &ex );
catch_exception( &ex );
if (libvlc_exception_raised(&ex))
{
result = 1;
libvlc_exception_clear(&ex);
}
return result;
}
......@@ -692,6 +696,15 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
libvlc_media_player_stop(instance);
}
- (void)gotoNextFrame
{
libvlc_exception_t e;
libvlc_exception_init(&e);
libvlc_media_player_next_frame(instance, &e);
catch_exception(&e);
}
- (void)fastForward
{
[self fastForwardAtRate: 2.0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment