Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add latency metrics for video playback#89

Open
MayuriKhinvasara wants to merge 6 commits into
main from
playback_latency_metrics
Open

Add latency metrics for video playback #89
MayuriKhinvasara wants to merge 6 commits into
main from
playback_latency_metrics

Conversation

@MayuriKhinvasara

@MayuriKhinvasara MayuriKhinvasara commented Aug 6, 2024

Copy link
Copy Markdown
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

Copy link
Copy Markdown
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
Copy Markdown
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?

@MayuriKhinvasara MayuriKhinvasara Aug 7, 2024

Copy link
Copy Markdown
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

@calren calren left a comment

Copy link
Copy Markdown
Contributor

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

Reviewers

@calren calren calren approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /