ios - Sound in background mode with the default audio session? -
if use play sound in device method [[avaudiosession sharedinstance] setcategory:avaudiosessioncategoryplayback error:nil]; effect on sound playing or work if play sound using avaudioplayer
no! avaudiosession singleton class can used set audio context app. not specified avaudioplayer. #reference https://developer.apple.com/library/ios/documentation/avfoundation/reference/avaudiosession_classreference/
Comments
Post a Comment