在视频录制中,音频不在iOS的sdk导航中记录 [英] In video recording audio is not record on here sdk navigation in ios

查看:62
本文介绍了在视频录制中,音频不在iOS的sdk导航中记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用HERE SDK逐行导航来录制视频.当导航没有开始时,视频录制就可以正常工作,但是当导航正在进行并尝试录制视频时,就会出现此错误

I am try to record video with turn by turn navigation using HERE SDK. Video recording is working perfectly when navigation is not start, but when navigation is going on and try to record video this error comes

[avas] AVAudioSession.mm:1074:-[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.

推荐答案

HERE导航的音频和视频录制应用的音频之间存在冲突.我们最新的SDK可让您实现音量控制和回避.

There is a conflict between the audio of HERE navigation and that of the video recording app. Our latest SDK allows you to implement volume control and ducking.

音量回避是基于音频焦点来操纵音量的一种做法.它允许另一个应用程序(例如电话)将其音频标记为具有更高的优先级,并接管"当前设备的音频.要授予或请求音频焦点,请调用NavigationManager.AudioPlayer.getStreamId()检索当前音频流,然后将其与Android AudioManager一起使用.

Volume ducking is the practice of manipulating volume based on audio focus. It allows another app such as a phone call to flag its audio as having higher priority and "take over" the current device audio. To grant or request audio focus, call NavigationManager.AudioPlayer.getStreamId() to retrieve the current audio stream and then use it with the Android AudioManager.

https://developer.here.com /documentation/android-premium/dev_guide/topics/audio-management.html

这篇关于在视频录制中,音频不在iOS的sdk导航中记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆