google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

seeking method for simultaneous video speed and voice Change #11327

Closed KimDandan closed 8 months ago

KimDandan commented 1 year ago

Hello,

I'm looking to implement the following features:

Here's the approach I've considered:

Is it possible to implement it this way? Both features must work together. If there's a better approach or any recommendations, I'd greatly appreciate your guidance.

Thank you.

tonihei commented 1 year ago

This is untested, but I think when you build you own DefaultAudioSink in DefaultRenderersFactory.buildAudioSink, you can specify a custom AudioProcessorChain via DefaultAudioSink.Builder.setAudioProcessorChain. This allows you to intercept the call to AudioProcessorChain.applyPlaybackParameters to set the speed on the SonicAudioProcessor and also reconfigure your custom audio processor at the same time.