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

[android] Refine video render algorithm #3269

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasonzhangxx
Copy link
Contributor

@jasonzhangxx jasonzhangxx commented May 15, 2024

  1. Improve the precision of timestamp conversion.
  2. Set default playback rate to 0 in AudioFrameTracker.

b/332858454

@xiaomings xiaomings changed the title [android] Refine video render algorithm [android] Refine video renderer algorithm May 15, 2024
@xiaomings xiaomings changed the title [android] Refine video renderer algorithm [android] Refine video render algorithm May 15, 2024
@jasonzhangxx jasonzhangxx force-pushed the improve-frame-release branch 2 times, most recently from 9cb954a to 90b791b Compare May 16, 2024 20:25
@@ -54,7 +54,7 @@ class AudioFrameTracker {
// Usually there are very few elements, so std::vector<> is efficient enough.
std::vector<FrameRecord> frame_records_;
int64_t frames_played_adjusted_to_playback_rate_ = 0;
double last_playback_rate_ = 1.0;
double last_playback_rate_ = 0.0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on how confident you are with the change (and the one above), we may or may not want to add a way to turn it off.

1. Improve the precision of timestamp conversion.
2. Set default playback rate to 0 in AudioFrameTracker.

b/332858454
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