Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 9    Views: 2732

photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
02/13/12 02:40 AM (13 years ago)

when silent mode is switch on no audio on video

I have put on app on the store for a couple of weeks now http://itunes.apple.com/us/app/lightroom-basics/id495479296 which are Lightroom tutorials and I have several users that bought the app, stating that there was no audio, in fact the problem is that when the silent mode on the iphone is switch on, there is no audio, I tested on my Iphone and indeed there is that problem, even though the volume is at the max, if the silen mode is on, no audio. I tryed other videos from other apps on my iphone and if I put up the volume even thought the silence mode is on, the audio is fine, any idea why ? and how I can update my app so that my users do not have this problem ? tks guys. Serge
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/13/12 11:42 AM (13 years ago)
Sounds like there are a few ways to do this. In any case you'll need to hack around in the Objective C a bit to make the adjusment. See this before continuing... http://stackoverflow.com/questions/3740528/play-sound-on-iphone-even-in-silent-mode
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
02/13/12 12:11 PM (13 years ago)
Dear David, Tks but maybe I was not clear what I dont understand is that what I have seems to a bug, fopr example on my Iphone on the native youtube app, when I watch a video with audio and while watching the video I turn on the silent mode (on the left of the Iphone), the audio is on. On the buzztouch application, the audio goes off, you still can move the volume up and down, like if there was audio, but no audio. The buzztouch generate application sseems to be the only ones that have this problem. So im not trying to do a special trick, but just have the video play like any other app. tks for the answer Serge Serge
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/16/12 02:19 PM (13 years ago)
Hi Serge, We don't consider this a bug but understand if you do. There are literally dozens of ways to configure audio behaviors in iOS and what does / doesn't happen when events occur. Example: When the app is put to the background, should the audio keep playing? When headphones are plugged in, should it keep playing or pause? When the silent switch is toggled, what should happen. There are tons and tons of variables when it comes to audio. You'll need to work out what solution is best for you and the solution you determine will then determine what adjustments you need to make to your project. I can say that all of these will be related to managing an audio session object (the you need to create and configure) and the iOS docs are the best way (or google of course) to figure this out. Managing audio can get complex and as such you may not be able to do this without spending some time figuring it out. We can't do this type of programming for you but you could surely hire some help if you need? The included screens and options in your buzztouch panel do allow lots of flexibility but some things do need to be worked out after you download your project, sounds like this is one of them. Lastly, the fact that 'other apps work different' that yours has nothing to do with this, they are other apps, not your app. Today, if users have silent switch on your audio won't play thats the expected behavior as far as we are concerned without modifying your source code.
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
02/17/12 03:12 AM (13 years ago)
Dear David, Tks for taking the time to clarify this point. I got it this is not a bug ! My only concern is that a got a bad review on the Itune store because of that, the guy couldt figure out how to get the audio working, I also got an mail from another costumer with the same question, so I got a bit worried that I did something wrong. At least I know I did not do something wrong ! I would still think that the default option on playing a video should be that if the silent mode is turn off, the audio should still be there for 2 main reasons : 1. I couldt find another app that reacted that way 2. What is weird with that behavior is that when you turn on the silent mode, the volume slide is still on and you can drag it left and right and it still works, but the audio if off, wich I must say feels a bit funny. So if there is any way this could be change to the default of the audio is still on while the silent button is turn off I think it would benefit the Buzztouch communitty. But again this is only my viewpoint. Tks again for you long answer ! Serge
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
02/22/12 05:09 PM (13 years ago)
Dear David, Sorry to insist but my apps are selling pretty well and I keep on getting bad reviews because people dont understand why they have to turn off their silent mode to hear the song, it is so unusual to what users are use to. Is there really no simple way to correct this ? Tks ! Serge
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/01/12 12:08 PM (13 years ago)
@photoserge: No need to be sorry, it's OK to insist of behaviors, this is exactly what make a high quality app! If you get any responses here http://stackoverflow.com/questions/9508039/ios-5-no-audio-when-playing-a-video-with-silent-mode-on-with-a-buzztouch-app Let us know so we can figure out if changes should be implemented.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/01/12 12:12 PM (13 years ago)
Creating this audio session (to customize the behavior) you'll need to figure out where to put the code. I would put it in the app delegate file so the audio session loads when the app launches. // prevent mute switch from switching off audio from movie player NSError *_error = nil; [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &_error]; I'm not sure if pasting that alone in the delegate will get us the behavior we want it but it very well could.
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
03/01/12 03:26 PM (13 years ago)
Dear David, tks so much for this, but Im really bad at coding should I paste this in the .h or .m file and where exactly ? tks ! Serge
 
TheCloudMediaGroup
Aspiring developer
Profile
Posts: 33
Reg: Nov 23, 2012
Spokane
3,380
like
02/23/13 02:30 PM (12 years ago)
Awesome David! I just found this and implemented this code right after: //load sound effect players in background thread. Do this before building the interface is case home-screen uses sound effects. [NSThread detachNewThreadSelector: @selector(loadSoundEffects) toTarget:self withObject:nil]; //load the applications data [self loadAppData]; Within the appDelegate.m Works like a charm!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.