I'm building an app that uses AVAudioPlayer and MPMoviePlayerController. The sound works perfectly on the simulator. I know sound works on my phone because other apps play sound just fine (like this one used to). When I start the video, I hear about 0.2s of the background music that's supposed to be playing. I'm getting no errors.
I don't even know where to start on this one. Any idea?
I was getting the "occasional" blip of sound in my app, so I assumed my volume was fine. It turns out that my phone was switched to vibrate aka silent. I flipped the switch back and viola.
The new question is: Do I feel like a moron? Yes I do.
** EDIT **
I stumbled upon the idea to check the switch when I read an article on Understanding the Side Switch
Related
I am working on a Instagram face filter/effect with SparkAR. It is successfully uploaded, approved and works just fine when across many devices when I try the effect in the Instagram app. I can select the effect when creating a Story however – I cannot when doing a Live stream. The effect symbol doesn’t show up nor can I select it when searching for the effect, while all the other effects are still there.
One user reported that she was able to select the effect during Live on her Android device. But at least on iOS devices it seems to be impossible to find or select the effect.
Are there any differences between Live and Non-Live effects? Or between iOS and Android effects? Has anyone had the same problem before? How can I make sure that my effect is available for Live streaming?
Thank you for any hints!
Turns out, that the use of audio inside the filter caused it to not appear in Live mode.
I removed all audio files and playback controllers and enabled the microphone. It now works.
If you are familiar with scratch, you'll know that Scratch 3 was built to support mobile.
Javascript audio isn't working on mobile devices shows that mobile doesn't support auto playback of audio
Scratch seems to play audio without a problem...
Does anyone know the secret behind Scratch mobile audio playing capabilities? (share pieces of code which scratch uses to play audio on mobile)
(Incase you're wondering why I need to know this, I need to use it on my website)
Read the answer carefully.
Some mobile browsers support automatic playback of audio, but ios, chrome and others require interactive actions to trigger the sound playback.You can try working with the mute attribute..
Scratch can't play sounds automatically. You have to click the Start button on any project. By "interactive actions" they mean clicks, scroll etc,.
I would like to mute the system sound when starting/stopping video recording in Windows 10 mobile. There are apps like 6sec and Instagram UWP Beta that can do it. I did research about MediaCapture API but found nothing related to the problem.
I thought the system did it automatically..
A possible workaround can be to play a media file before starting the camera, like a super short mp3 file with no sound..
I haven't tested it, but it should work.. Maybe there's a better solution.. Let me know!
In my WP8 app, there is a background audio that plays throughout my App.
When I minimize the App, the audio obviously goes off as it is supposed to do. However, when I resume the app, the audio does not continue, that is totally stops!
Another interesting thing to be noted in my App is that after resuming, only the background music is affected whereas other audio that need to be played for a short duration, say for example on a button click, function normally as expected.
I think it's got something to do with the App's life cycle and Fast App Resume feature.
Kindly help me out. Thanks.
If you're not working on with the BackgroundAudioPlayer, then you should check this in order to play Background Audio within your application.
Reference: Background Audio Streamer Sample
Hi i am implementing vungle using the plugin for corona sdk.
The video shows fine but the advert plays over the top of my background music / sound.
I have tried calling audio.pause and audio.setVolume(0) before the advert is shown but that doesn't work, even if i call audio pause or setvolume and then show the ad wih a second delay.
The audio is paused but then resumes when the advert plays one second later.
E-mailed vungle but haven't had a reply.. I saw a post on the dev forums about it but it had no replies so i know other people have had the same problem just wondered if anyone has a solution?
Thanks!