Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

MayuriKhinvasara
Copy link
Contributor

Measure time taken to render the first frame by the player.

Merge pull request #87 from android/support_video_playback_from_internet

Video playback support via network
@MayuriKhinvasara MayuriKhinvasara requested a review from calren August 6, 2024 10:43
@MayuriKhinvasara
Copy link
Contributor Author

@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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@calren calren left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants