Video temporarily freezes after switching audio track

Hello,

Please help me with this issue I have.

My app has this feature that enables audio track switching for media playback. so I used webapis.avplay.setSelectTrack(‘AUDIO’,index) and is successful.

However, I get "Wrong callback identifier. Ignoring message." error which affects the buffer time of the playback. Can anyone please please help suggest of solution to this error?

image

My main target is to reduce the buffer time after switching audio track. the video freezes for a good 7 seconds before resuming. I’m thinking that the error may, in some ways, be related. or is it not? If it’s not related, how else do I reduce the buffer time of the playback?

Can anyone help? Thanks in advance!