解决声音问题
This commit is contained in:
parent
222a149aec
commit
aac8519d29
@ -33,13 +33,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
configureFireBase()
|
||||
|
||||
// do {
|
||||
// try AVAudioSession.sharedInstance().setActive(true)
|
||||
// try AVAudioSession.sharedInstance().setCategory(.playback,options: .allowAirPlay)
|
||||
// }
|
||||
// catch {
|
||||
// print("err: set audiosession:\(error)")
|
||||
// }
|
||||
do {
|
||||
try AVAudioSession.sharedInstance().setActive(true)
|
||||
try AVAudioSession.sharedInstance().setCategory(.playback,options: .allowAirPlay)
|
||||
}
|
||||
catch {
|
||||
print("err: set audiosession:\(error)")
|
||||
}
|
||||
|
||||
|
||||
SVProgressHUD.setDefaultStyle(.dark)
|
||||
|
||||
@ -339,6 +339,7 @@ class CCSpatialVideoDisplayController: BaseController {
|
||||
//屏幕进入前台
|
||||
@objc func notification_didActiveNotification(notification:Notification) {
|
||||
self.checkAirPlayStatus()
|
||||
customPlayer.play(true)
|
||||
print("ccs .....notification_didEnterBackgroundNotification")
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user