mdk-sdk icon indicating copy to clipboard operation
mdk-sdk copied to clipboard

Android: Video playback isn't smooth with audio enabled

Open sbenmeddour opened this issue 7 months ago • 8 comments

Describe the bug Playback clearly appears less smooth with audio enabled

To Reproduce To get smooth playback, just disable audio track or setAudioBackends = [] Tried audioBackends: "OpenSL", "AudioTrack", both or only one, same result

Expected behavior Smooth video with audio

Environment:

  • OS: Android
  • Surface, Surface tunnel & GLSurfaceView (all same behavior)

https://github.com/user-attachments/assets/af1e1cc6-b735-403c-b466-85d2315c76f8

https://github.com/user-attachments/assets/5e39938e-f7e3-4256-b981-f0e783d62bda

logs_with_audio.txt logs_without_audio.txt

sbenmeddour avatar Jul 08 '25 17:07 sbenmeddour

I have the same issue, how did u disable audio on flutter?

RenanDelfanti avatar Jul 18 '25 01:07 RenanDelfanti

I have the same issue, how did u disable audio on flutter?

setAudioBackends([])

sbenmeddour avatar Jul 18 '25 03:07 sbenmeddour

@sbenmeddour I don't see this method on https://pub.dev/packages/fvp :(

RenanDelfanti avatar Jul 18 '25 11:07 RenanDelfanti

I am not using flutter, but Android native

But i think this is what you are looking for

sbenmeddour avatar Jul 18 '25 23:07 sbenmeddour

it's an a/v sync issue, i will add an option to improve this

wang-bin avatar Jul 19 '25 01:07 wang-bin

@sbenmeddour I don't see this method on https://pub.dev/packages/fvp :(

registerwith player option: "audio.renderer": "". but then no sound

wang-bin avatar Jul 19 '25 01:07 wang-bin

@wang-bin Hi, do you have an estimate on when this might be addressed? I’m trying to plan around it.

sbenmeddour avatar Sep 12 '25 18:09 sbenmeddour

try the latest build, and player.setProperty("avsync.audio", "0");

wang-bin avatar Sep 15 '25 09:09 wang-bin