ios - OpenTok 在音频/视频 session session 中缺少音频

标签 ios avaudioplayer voip avaudiorecorder opentok

我正在开发 iOS 应用程序,能够建立由 OpenTok 提供支持的音频/视频通话。 我在配备 iOS 7.x 和 iOS 8.x 并集成 OpenTok iOS SDK 2.3.0 的 iPhone 设备上对其进行了测试。

在应用程序使用过程中的某个时刻,我们尝试启动新的 OpenTok 音频/视频 session ,并从 OpenTok SDK 收到错误(仅在调试输出中,无法通过 SDK 处理该错误)。 当视频 session 正在进行时,音频不再可用。

错误如下。 有趣的是,在发生错误后,我们仍然可以在应用程序内录制和播放音频(除了 OpenTok session 之外,我们还有这样的功能)。 但所有后续 OpenTok session 都没有音频,我们必须重新启动应用程序才能使其再次工作。

09:55:41.768 ERROR: [0x11f55000] 1230: AUIOClient_StartIO failed (-66637)
ERROR[OpenTok]:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:41.811 ERROR: [AURemoteIO::IOThread] >aurioc> 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:42.464 ERROR: [0x11f55000] 1230: AUIOClient_StartIO failed (-66637)
ERROR[OpenTok]:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:43.917 ERROR: [AURemoteIO::IOThread] >aurioc> 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:44.596 ERROR: [0x11f55000] 1230: AUIOClient_StartIO failed (-66637)
ERROR[OpenTok]:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:44.612 ERROR: [AURemoteIO::IOThread] >aurioc> 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:45.268 ERROR: [0x11f55000] 1230: AUIOClient_StartIO failed (-66637)
ERROR[OpenTok]:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:46.609 ERROR: [AURemoteIO::IOThread] >aurioc> 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:47.261 ERROR: [0x11f55000] 1230: AUIOClient_StartIO failed (-66637)
ERROR[OpenTok]:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:48.195 ERROR: [AURemoteIO::IOThread] >aurioc> 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:48.838 ERROR: [0x11f55000] 1230: AUIOClient_StartIO failed (-66637)
ERROR[OpenTok]:Audio device error: AUGraphStart error: ˇ˛˚≥

OpenTok session 在测试应用程序中工作正常,但在实际应用程序中,我们有其他代码来管理 AVAudioSession 模式和类别,我们遇到了上述问题。

初始化 OpenTok session 的 UIViewController https://dl.dropboxusercontent.com/u/83972129/OpenTokDevViewController.cs

请告知如何诊断和解决问题。

最佳答案

尝试玩

[[AVAudioSession sharedInstance] setCategory:??? error:nil]

您在应用程序中设置的类别可能无法与 Opentok 配合使用。

关于ios - OpenTok 在音频/视频 session session 中缺少音频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26433988/

相关文章:

ios - 重新编辑: Audio not playing in real ios Device but playing in simulated devices in Swift2

ios - Swift iOS - 如何分析给定的 MP3 文件以确定节拍的时间?

iphone - 在 ARC 中使用 NSNotificationCenter 代码块方法时,未调用 View Controller dealloc

iphone - Core Data - 如何生成 CoreDataGeneratedAccessors?

objective-c - 在核心数据中传递对象

swift - 使用 AVAudioPlayer swift 播放音频文件

ios4 - 为 iOS 4.0 编译 pjsip

c++ - 回声抑制库?

c++ - C++中的IAX注册程序

ios - 使用 Xcode 中另一个场景中的按钮暂停音乐