jeudi 28 septembre 2017

iOS 11: AudioElement seeks to a wrong position within the source audio

Given a (large) mp3 file. I want to seek to a position within the audio. As a result, the playback starts from a position, which is a couple of seconds earlier than what I set AudioElement.currentTime to.

I set up a small application to demonstrate the issue:

  1. Go to the following URL: http://ift.tt/2xHppXn
  2. Once the PLAY button gets enabled, press it. The application will keep playing a portion of the audio repeatedly.

The audio portion being played should be a portion between the positions 500sec and 510sec. However, on iOS 11, the playback starts from a position a couple of seconds earlier than position 500sec and also finishes earlier than position 510sec.

On Android or Desktop browsers, the playback and seeking is OK.

Tested with Safari on iOS11: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0_1 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A402 Safari/604.1

Has anybody else encountered this issue?

Does anyone have a solution/workaround?

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire