Comments (3)
compute the time playback was stopped due to buffering
You probably want PlaybackStats.getTotalRebufferTimeMs()
if I understand your goal correctly. Specifically, this counts the time from PLAYBACK_STATE_BUFFERING
only (= the time a user actively waited for playback). PLAYBACK_STATE_PAUSED_BUFFERING
is not included because the assumption is that a paused playback is not something a user is actively waiting for.
understand click to playtime of a stream
Most likely this is getTotalPlayTimeMs
or getTotalPlayAndWaitTimeMs
depending on whether you want to include the wait times or not.
How to calculate buffer ratio
If you are just after the ratios, there are also the predefined getRebufferTimeRatio
and getWaitTimeRatio
methods that might be of interest
from media.
as per docs PlaybackStats.getTotalRebufferTimeMs() does not include initial buffer and buffer after user has seeks.
to understand the full picture we want to include those as well.
does getTotalWaitTimeMs() makes more sense?
from media.
does getTotalWaitTimeMs() makes more sense?
This depends on your exact needs. Please read the method documentation carefully to know what is included and what isn't. The method also links to the other 'wait time' methods like getTotalJoinTimeMs
or getTotalSeekTimeMs
.
from media.
Related Issues (20)
- DASH manifest default_KID parameter HOT 3
- ExoPlayer Custom Renderer
- maxSegmentDuration property on DASH Manifest used by ExoPlayer
- Setting viewport size does not constrain video resolution as expected HOT 2
- Add the setter counter part of `Player.getMaxSeekToPreviousPosition()` HOT 2
- Please support rtsp payload type 33 HOT 1
- Exception: Malformed URL (RTSP) HOT 3
- Can the anchor position of a video be changed by effects in a composition? HOT 1
- Playback stops after 60 secs where video continues for 54 sec and audio continues for 6 more seconds HOT 2
- How to dynamically change the audio url using media3 exoplayer? HOT 2
- Crypto key not available: ERROR_DRM_NO_LICENSE HOT 2
- Player.Listener onIsPlayingChanged method not called after the preroll ad on Android 14
- Issue with Surface Handling when Switching Between Two ExoPlayers
- Why ExoPlayer in Android OS shows black preview screen while preview HOT 2
- Provide Option to read unsynced lyrics using Metadata or ID3Tags
- Expose current focus state from `AudioFocusManager`
- OfflineLicenseHelperdownloadLicense stuck
- MediaSessionCompat queue does not use ShuffleOrder
- Presentation Time Offset for MPEG DASH manifests not applied correctly for xHE-AAC and AC4 streams HOT 1
- ExoPlayer signals `Player.STATE_ENDED` with MPD transition from dynamic to static
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from media.