Search found 10 matches

Go to advanced search

by billyboy5000
Thu Feb 04, 2016 7:02 am
Forum: Issues
Topic: Playing audio on page load doesn't work when returning to page
Replies: 3
Views: 938
 
Jump to post

Playing audio on page load doesn't work when returning to page

I have now figured this out. What i had to do was leave this code in the sounds.js file // Play function function PlayTrack(src) { var au = jQuery("#yourAudio"); au.attr("src", src); if (au[0] && au[0].play) au[0].play(); } // Stop playing function function StopPlayTrack(...
by billyboy5000
Wed Feb 03, 2016 11:15 pm
Forum: Issues
Topic: Playing audio on page load doesn't work when returning to page
Replies: 3
Views: 938
 
Jump to post

Playing audio on page load doesn't work when returning to page

Hi if you read my post it says that I did try that.
The code to play the sound is on a page show event.
The js code in the end of my post is in a js file.

by billyboy5000
Wed Feb 03, 2016 9:06 am
Forum: Issues
Topic: On/off button for all music in app
Replies: 11
Views: 6965
 
Jump to post

On/off button for all music in app

Now I have a new issue with audio playback, if anyone can help see here: https://getsatisfaction.com/apperyio/...

by billyboy5000
Wed Feb 03, 2016 9:03 am
Forum: Issues
Topic: Playing audio on page load doesn't work when returning to page
Replies: 3
Views: 938
 
Jump to post

Playing audio on page load doesn't work when returning to page

I am using this method to load audio onto the page: https://blog.appery.io/2015/10/how-to... and then using on page show event to trigger javascript and play the audio like so... PlayTrack("sounds/theme.mp3"); This works and when i first open the app the audio is playing but if i navigate ...
by billyboy5000
Wed Feb 03, 2016 6:33 am
Forum: Issues
Topic: On/off button for all music in app
Replies: 11
Views: 6965
 
Jump to post

On/off button for all music in app

Your code was missleading...

I had to use

var playMusic = localStorage.getItem('playMusic');
if (playMusic == "true") {
// do something
}

what was the canPlay part about?! took me ages to spot that

by billyboy5000
Tue Jan 26, 2016 7:23 am
Forum: Issues
Topic: On/off button for all music in app
Replies: 11
Views: 6965
 
Jump to post

On/off button for all music in app

Thanks yes i think local storage variable would be the answer. Need to figure out the script then....

by billyboy5000
Thu Jan 21, 2016 8:16 am
Forum: Issues
Topic: On/off button for all music in app
Replies: 11
Views: 6965
 
Jump to post

On/off button for all music in app

I am building a children's app which have several different audio tracks depending on which page you are on, they auto play. I inserted them as html5 audio. I created a mute button which can stop the audio. However, the problem i have is that when you navigate to a different page the music will star...
by billyboy5000
Tue Jan 12, 2016 8:25 am
Forum: Issues
Topic: Multiple issues with android app
Replies: 0
Views: 1222
 
Jump to post

Multiple issues with android app

1) When exporting the app to apk and testing on my device. it says the app needs lots and lots of permissions when i install. Even though i only ticked 'internet' in the project options. How can i ensure the app only has the permissions it really needs 2) My app includes images. When i install the a...
by billyboy5000
Tue Jan 12, 2016 8:23 am
Forum: Issues
Topic: Best way to open youtube video full screen
Replies: 2
Views: 759
 
Jump to post

Best way to open youtube video full screen

Thanks for the answer will give it a try.

by billyboy5000
Sun Dec 13, 2015 1:08 am
Forum: Issues
Topic: Best way to open youtube video full screen
Replies: 2
Views: 759
 
Jump to post

Best way to open youtube video full screen

I am currently using the solution mentioned here: https://getsatisfaction.com/apperyio/... to achieve some sort of full screen video but it is not ideal, the videos never fit perfectly - i would prefer some more native type of full screen if anyone has any better solutions? Also, another thing about...

Go to advanced search