Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
34bd28f5
Commit
34bd28f5
authored
Jun 18, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Movie View: always set a start time for sakes of simplicity
parent
947455e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AspenProject/VLCMovieViewController.m
AspenProject/VLCMovieViewController.m
+5
-5
No files found.
AspenProject/VLCMovieViewController.m
View file @
34bd28f5
...
...
@@ -316,13 +316,13 @@
-
(
void
)
_playNewMedia
{
NSNumber
*
playbackPositionInTime
=
@
(
0
);
if
(
self
.
mediaItem
.
lastPosition
&&
[
self
.
mediaItem
.
lastPosition
floatValue
]
<
.
95
)
{
if
(
self
.
mediaItem
.
duration
.
intValue
!=
0
)
{
NSNumber
*
playbackPositionInTime
=
@
(
self
.
mediaItem
.
lastPosition
.
floatValue
*
(
self
.
mediaItem
.
duration
.
intValue
/
1000
.));
[
_mediaPlayer
.
media
addOptions
:@{
@"start-time"
:
playbackPositionInTime
}];
APLog
(
@"set starttime to %i"
,
playbackPositionInTime
.
intValue
);
}
if
(
self
.
mediaItem
.
duration
.
intValue
!=
0
)
playbackPositionInTime
=
@
(
self
.
mediaItem
.
lastPosition
.
floatValue
*
(
self
.
mediaItem
.
duration
.
intValue
/
1000
.));
}
[
_mediaPlayer
.
media
addOptions
:@{
@"start-time"
:
playbackPositionInTime
}];
APLog
(
@"set starttime to %i"
,
playbackPositionInTime
.
intValue
);
[
_mediaPlayer
play
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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