Optional playback-only iOS build without microphone APIs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp, ios, objective-c, react-native, swift
調査の方向性
Start by reviewing the attached v0.13.6 patch and the iOS recorder implementations named in the issue: IOSAudioRecorder, NativeAudioRecorder, IOSRecorderCallback, and AudioRecorderHostObject. Trace how the iOS build is configured for CocoaPods, Swift Package Manager, and Expo config plugins, then define and verify the disabled build behavior: playback and synthesis remain available, while recording requests return an unsupported-operation error. The issue reports a working local proof of concept but no comprehensive validation.
索引モデルが issue の本文から書いたものです。
説明
Feature Request
Problem
Some applications use react-native-audio-api exclusively for audio playback and synthesis, without requiring microphone input or audio recording.
However, the iOS binary still includes recording-related implementations and references to microphone permission APIs, even when the application never uses these features.
This can complicate App Store privacy audits and introduces native functionality that is unnecessary for playback-only applications.
Proposed solution
Introduce an optional build-time configuration to disable audio recording on iOS.
For example:
RNAudioAPI_ENABLE_RECORDING=false
The option would:
- Exclude iOS recorder implementations from compilation.
- Remove references to microphone permission request/check APIs from the playback-only build.
- Preserve audio playback, synthesis, decoding, and the existing audio engine.
- Return a clear unsupported-operation error if recording is requested.
- Keep recording enabled by default for full backward compatibility.
Ideally, the configuration would support CocoaPods, Swift Package Manager, and Expo config plugins.
Existing implementation
I maintain a React Native application that uses this library exclusively for synthesized workout audio cues.
For react-native-audio-api 0.13.6, I implemented a local Yarn patch that:
- Excludes IOSAudioRecorder, NativeAudioRecorder, IOSRecorderCallback, and AudioRecorderHostObject implementations from the iOS CocoaPods build.
- Removes calls to AVAudioApplication / AVAudioSession microphone permission APIs.
- Preserves the JSI recorder factory but makes recording attempts fail explicitly.
- Uses MA_NO_DEVICE_IO=1 for miniaudio while retaining decoding and playback through AVAudioEngine.
The patched version builds and runs on iOS, and audio playback works. This is not yet a comprehensive validation of every audio scenario.
Related implementation patterns
I have implemented optional native build configurations in two other React Native libraries:
react-native-file-hash
https://github.com/Preeternal/react-native-file-hash
Supports build-time engine selection across Android, CocoaPods, SwiftPM, and Expo, compiling and linking only the selected implementation.
react-native-document-scanner-plugin
https://github.com/Preeternal/react-native-document-scanner-plugin
Supports optional Android analysis features through Gradle properties and an Expo config plugin.
Contribution
Would you be interested in supporting an optional playback-only iOS build?
I’ve attached my current Yarn patch against v0.13.6 as a proof of concept. It is application-specific and not intended as a ready-to-merge solution, but it demonstrates the changes needed for a playback-only iOS build. I’m happy to help adapt it into a configurable upstream implementation.
- 主要言語
- C++
- スター
- 856
- フォーク
- 100
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
software-mansion/react-native-audio-api のほかの issue
-
Android: audio focus listener posts to a dead looper after JS reload, interruptions (calls) are missed対応中かも @JaydeepAgravat が 1 日前に担当しました。 オープンandroid bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
software-mansion/react-native-audio-api#1358 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
android bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
software-mansion/react-native-audio-api#1273 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
bug ios
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
software-mansion/react-native-audio-api#1238 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
software-mansion/react-native-audio-api#1418 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
software-mansion/react-native-audio-api#1416 ·
メンテナーはふだん 1 日以内に返信
software-mansion/react-native-audio-api の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ROCm/AMDMIGraphX#5490 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
arvidn/libtorrent#9126 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Sunrisepeak/mcpp-language-server#80 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
xiaoyifang/goldendict-ng#3148 ·
メンテナーはふだん 1 日以内に返信