Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
play_an_mp3_audio_stream_in_phonegap [2015/08/03 14:40]
Joel Dare
play_an_mp3_audio_stream_in_phonegap [2015/09/16 18:47]
Joel Dare [Background Audio]
Line 47: Line 47:
 **Note:** Some users have have had trouble finding the //Sound.m// file.  It's not in the XCode project itself. ​ You'll find it beneath your home directory (~) under //​~/​PhoneGapLib/​Classes///​ or you can just use Finder to search for //​Sound.m//​. ​ Right-click on it and open it in XCode. **Note:** Some users have have had trouble finding the //Sound.m// file.  It's not in the XCode project itself. ​ You'll find it beneath your home directory (~) under //​~/​PhoneGapLib/​Classes///​ or you can just use Finder to search for //​Sound.m//​. ​ Right-click on it and open it in XCode.
  
 +===== Pause Feature =====
 +
 +These two lines might work to pause the audio.
 +
 +    sound.pause(); ​
 +    sound.currentTime ​ = 0;
 +
 +If that doesn’t work, another popular suggestion is to set the src to nothing on “pause” and then back to the correct source on play again.
 +
 +    sound.src = "";​
 ====== Working HTML Example ====== ====== Working HTML Example ======
  
comments powered by Disqus
play_an_mp3_audio_stream_in_phonegap.txt · Last modified: 2020/06/01 22:53 (external edit)