Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
997c46c4
Commit
997c46c4
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Set media seen if remaining time is less than 10s
parent
185ac1f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/PlaybackService.java
+3
-2
3 additions, 2 deletions
vlc-android/src/org/videolan/vlc/PlaybackService.java
with
3 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/PlaybackService.java
+
3
−
2
View file @
997c46c4
...
...
@@ -705,8 +705,9 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
if
(
canSwitchToVideo
||
media
.
isPodcast
())
{
//Save progress
final
long
time
=
getTime
();
float
progress
=
time
/
(
float
)
media
.
getLength
();
if
(
progress
>
0.95f
)
{
final
long
length
=
media
.
getLength
();
float
progress
=
time
/
(
float
)
length
;
if
(
progress
>
0.95f
||
(
length
-
time
)
<
10000
)
{
//increase seen counter if more than 95% of the media have been seen
//and reset progress to 0
final
long
incSeen
=
media
.
getSeen
()
+
1L
;
...
...
This diff is collapsed.
Click to expand it.
rancidfrog
@rancidfrog
mentioned in issue
#387 (closed)
·
7 years ago
mentioned in issue
#387 (closed)
mentioned in issue #387
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment