Accuracy of MediaPlayer.seekTo(int msecs)

后端 未结 2 561
逝去的感伤
逝去的感伤 2020-12-09 03:07

Why is MediaPlayer.seekTo(int msec) so inaccurate?

It\'s sometimes 30 seconds early (with mp3\'s of both variable and constant bitrates)! Is seeking wit

2条回答
  •  余生分开走
    2020-12-09 03:26

    i dont know anything about android. But i know that in most of media file format there is a one provision that called seek entries or cues entry.. that shows for this particular time from here video & audio should be start to play

    if below time has cues entry 10 sec
    12 sec
    14 sec

    then if you seek to 11 sec then it will always play from 10 second if you seek to 12 sec then it will always play from 12 second

    for better seek file should be muxed with high cues entry..

提交回复
热议问题