Skip to content

Commit efba6a3

Browse files
authored
fix: remove files path from resolving (#989)
1 parent 4e05f3f commit efba6a3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/react-native-audio-api/src/core/AudioDecoder.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ class AudioDecoder {
9292
? stringSource.replace('file://', '')
9393
: stringSource;
9494

95-
if (Platform.OS === 'android' && !__DEV__) {
95+
if (
96+
Platform.OS === 'android' &&
97+
!__DEV__ &&
98+
!stringSource.startsWith('file://')
99+
) {
96100
filePath = NativeAudioAPIModule.resolveAndroidReleaseAsset(filePath);
97101
if (!filePath) {
98102
throw new AudioApiError(

0 commit comments

Comments
 (0)