Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
7bea7864
Commit
7bea7864
authored
Apr 30, 2015
by
Felix Paul Kühne
Browse files
playback: correctly continue video playback when coming back from the background
parent
9482d339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCPlaybackController.m
View file @
7bea7864
...
...
@@ -1038,7 +1038,15 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
-
(
void
)
applicationDidBecomeActive
:(
NSNotification
*
)
notification
{
_mediaPlayer
.
currentVideoTrackIndex
=
1
;
if
(
_videoOutputViewWrapper
)
[
self
setVideoOutputView
:
_videoOutputViewWrapper
];
if
(
_mediaPlayer
.
numberOfVideoTracks
>
0
)
{
/* re-enable video decoding and reset position once done */
float
position
=
_mediaPlayer
.
position
;
_mediaPlayer
.
currentVideoTrackIndex
=
1
;
_mediaPlayer
.
position
=
position
;
}
if
(
_shouldResumePlaying
)
{
_shouldResumePlaying
=
NO
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment