Skip to content

Commit abf7466

Browse files
mdydekmaciejmakowski2003
authored andcommitted
fix: remove files path from resolving (#989)
1 parent 6b6d068 commit abf7466

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)