-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add latency metrics for video playback #89
base: main
Are you sure you want to change the base?
Conversation
Merge pull request #87 from android/support_video_playback_from_internet Video playback support via network
…layback_latency_metrics
…layback_latency_metrics
…layback_latency_metrics
…layback_latency_metrics
@calren there were some spotless errors, rectified it. This is ready for review. This PR is just an incremental step in adding a preload manager |
override fun onRenderedFirstFrame() { | ||
super.onRenderedFirstFrame() | ||
val timeToFirstRenderFrame = System.currentTimeMillis() - timeAtPlayerPrepare | ||
// Use this value in future to compare performance with and without preload manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be useful to add a log statement here to print out this value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. Added a log statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just small suggestion about adding log statement so we utilize timeToFirstRenderFrame
…layback_latency_metrics
Measure time taken to render the first frame by the player.