-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve Progress Data management
- Loading branch information
olivier
committed
Oct 15, 2023
1 parent
ab0398d
commit 687ebec
Showing
4 changed files
with
187 additions
and
26 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
android/src/main/java/com/brentvatne/common/API/ProgressData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.brentvatne.common.API | ||
|
||
/* | ||
* This class is a helper to build onProgress notification | ||
*/ | ||
|
||
class ProgressData { | ||
var position: Long | ||
var bufferedDuration: Long | ||
var duration: Long | ||
var isOnLivePoint: Boolean | ||
|
||
init { | ||
position = -1 | ||
bufferedDuration = -1 | ||
duration = -1 | ||
isOnLivePoint = false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters