菜鸟教程小白 发表于 2022-12-12 12:09:08

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


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

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

<p>错误如下。
有趣的是,我们仍然可以在出现错误后在应用程序中录制和播放音频(我们在 OpenToksession 旁边有这样的功能)。
但是所有后续的 OpenToksession 都没有音频,我们必须重新启动应用程序才能让它再次工作。</p>

<pre><code>09:55:41.768 ERROR: 1230: AUIOClient_StartIO failed (-66637)
ERROR:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:41.811 ERROR: &gt;aurioc&gt; 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:42.464 ERROR: 1230: AUIOClient_StartIO failed (-66637)
ERROR:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:43.917 ERROR: &gt;aurioc&gt; 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:44.596 ERROR: 1230: AUIOClient_StartIO failed (-66637)
ERROR:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:44.612 ERROR: &gt;aurioc&gt; 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:45.268 ERROR: 1230: AUIOClient_StartIO failed (-66637)
ERROR:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:46.609 ERROR: &gt;aurioc&gt; 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:47.261 ERROR: 1230: AUIOClient_StartIO failed (-66637)
ERROR:Audio device error: AUGraphStart error: ˇ˛˚≥
09:55:48.195 ERROR: &gt;aurioc&gt; 1497: AURemoteIO@0x1684ec20: IOThread exiting with error 0x10004006
09:55:48.838 ERROR: 1230: AUIOClient_StartIO failed (-66637)
ERROR:Audio device error: AUGraphStart error: ˇ˛˚≥
</code></pre>

<p>OpenToksession 在测试应用中运行良好,但在实际应用中,我们有其他代码管理 AVAudioSession 模式和类别,我们遇到了上述问题。</p>

<p>初始化 OpenToksession 的 UIViewController
<a href="https://dl.dropboxusercontent.com/u/83972129/OpenTokDevViewController.cs" rel="noreferrer noopener nofollow">https://dl.dropboxusercontent.com/u/83972129/OpenTokDevViewController.cs</a> </p>

<p>请告知如何诊断和解决问题。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>试着玩一下</p>

<pre><code>[ setCategory:??? error:nil]
</code></pre>

<p>可能是您在应用中设置的类别不适用于 Opentok。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - OpenTok 在音频/视频 sessionsession 中缺少音频,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/26433988/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/26433988/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - OpenTok 在音频/视频 session session 中缺少音频