Audio Player startet nur eine Spur, aber es ist notwendig, dass die Play-Taste eine größere Anzahl von Spuren gleichzeitig startet. Die Dokumentation sagt:Wie aktiviert man AVAudioSessionCategoryAmbient?
You can play multiple sound files at the same time. Under the hood, this module uses AVAudioSessionCategoryAmbient to mix sounds on iOS.
Wie AVAudioSessionCategoryAmbient seit dem folgenden Code in der Datei, die Anwendung fällt AppDelegate aktivieren?
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (nonatomic, strong) UIWindow *window;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
return YES;
}
@end
Also? '- (void) pluginInitialize { [[AVAudioSession sharedInstance] setKategorie: AVAudioSessionCategoryAmbient Fehler: nil]; [[AVAudioSession sharedInstance] setActive: JA Fehler: Nil]; } ' –