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
Previous revision
play_an_mp3_audio_stream_in_phonegap [2015/09/16 18:48]
Joel Dare [Pause Feature]
play_an_mp3_audio_stream_in_phonegap [2020/06/01 22:53] (current)
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.
  
-===== Other Pause Althernatives ​=====+====== Other Pause Alternatives ======
  
-These two lines might work to pause the audio.+If the pause() command above doesn'​t work for you, these two lines might work to pause the audio.
  
-    ​sound.pause();  +    ​myaudio.pause();  
-    ​sound.currentTime ​ = 0;+    ​myaudio.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. 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 = "";​+    ​myaudio.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)