@@ -1561,6 +1561,12 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
HLog(@"\n-----...commondStr = %@....",commondStr);
[self.liveStreamManager rc_disconnect];
+
+ if (pcmPlayer)
+ {
+ [pcmPlayer stop];
+ pcmPlayer = nil;
+ }
}
@@ -60,7 +60,7 @@
//[[AVAudioSession sharedInstance] setActive: YES error: nil];
[[AVAudioSession sharedInstance] setActive:YES error: nil];
- [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategorySoloAmbient error:nil];
+ [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];