X
Tap here to go to the mobile version of the site.

ஆதரவு மன்றம்

There is a difference in time the .mp3 file played by Html5 <audio> in firefox 38 for Windows and Mac. Why does the difference arise?what is the fix for this?

  • 2 replies
  • 3 இந்த பிரச்னைகள் உள்ளது
  • Last reply by cor-el
பதிவிடப்பட்டது

I am using Html5 <audio> for playing .mp3 audio.

   <audio id="audio" controls>
       <source src="audio.mp3"  type="audio/mpeg">
   </audio>

by using Jquery I am setting the position of audio player like below

   var audio = $("#audio")[0];
   audio.currentTime = time in sec;


when I start the audio player at certain time (say at 03:03:20 ) audio is playing from different position in Windows and Mac. And this issue is observed for large audio files.

To demonstrate the problem I created a plunker. Try it here http://plnkr.co/edit/vmlCU1ey7Z6byR77e0hx?p=preview

click on Click here to play, to start playing the audio

In Mac when we skip to a position in audio file, it was playing from 200ms to 1s forward to the actual start point.

I am using Html5 &lt;audio&gt; for playing .mp3 audio. &lt;audio id="audio" controls&gt; &lt;source src="audio.mp3" type="audio/mpeg"&gt; &lt;/audio&gt; by using Jquery I am setting the position of audio player like below var audio = $("#audio")[0]; audio.currentTime = time in sec; when I start the audio player at certain time (say at 03:03:20 ) audio is playing from different position in Windows and Mac. And this issue is observed for large audio files. To demonstrate the problem I created a plunker. Try it here http://plnkr.co/edit/vmlCU1ey7Z6byR77e0hx?p=preview click on Click here to play, to start playing the audio In Mac when we skip to a position in audio file, it was playing from 200ms to 1s forward to the actual start point.

naveen.r மூலமாக திருத்தப்பட்டது

Additional System Details

பயன்பாடு

  • User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36

கூடுதல் தகவல்

guigs 1072 தீர்வுகள் 11697 பதில்கள்
பதிவிடப்பட்டது

I tested your plunker in version 40 by clicking on "Click here to play". It went to the exact time. It must have been fixed in the next version.

It says its supported in the compatibility table:

I tested your plunker in version 40 by clicking on "Click here to play". It went to the exact time. It must have been fixed in the next version. It says its supported in the compatibility table: *[https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery/Cross-browser_audio_basics]

guigs மூலமாக திருத்தப்பட்டது

cor-el
  • Top 10 Contributor
  • Moderator
17482 தீர்வுகள் 157986 பதில்கள்
பதிவிடப்பட்டது

I see the 3:03:20 time selected on the control bar when I click the button, but for me on Linux the actual frame that is played seems to be more off as I'm hearing quite a different text than what you posted. So it looks that the HTML5 media player has a problem to seek this MP3 file to go to the correct position in the file. If I open the MP3 link in VLC then it start playing the text that you posted.

I see the 3:03:20 time selected on the control bar when I click the button, but for me on Linux the actual frame that is played seems to be more off as I'm hearing quite a different text than what you posted. So it looks that the HTML5 media player has a problem to seek this MP3 file to go to the correct position in the file. If I open the MP3 link in VLC then it start playing the text that you posted.

cor-el மூலமாக திருத்தப்பட்டது