提交 9d3c49a0 编写于 作者: B bbcallen

ios: add shutdown to dealloc player resource

上级 823bb245
......@@ -135,6 +135,14 @@
return ijkmp_is_playing(_mediaPlayer);
}
- (void)shutdown
{
if (!_mediaPlayer)
return;
ijkmp_shutdown(_mediaPlayer);
}
- (MPMoviePlaybackState)playbackState
{
if (!_mediaPlayer)
......
......@@ -72,6 +72,11 @@
}
}
- (void)shutdown
{
// do nothing
}
#pragma mark Movie Notification Handlers
/* Register observers for the various movie object notifications. */
......
......@@ -37,6 +37,7 @@
- (void)pause;
- (void)stop;
- (BOOL)isPlaying;
- (void)shutdown;
@property(nonatomic, readonly) UIView *view;
@property(nonatomic) NSTimeInterval currentPlaybackTime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册