I have a file recorded with nativescript-audio. I can play it with nativescript-audio. However, I want to play it with webview. The problem is that the file recorded by nativescript-audio is not recognized as an mp3: in the webview the file appears empty and cannot be played.
I added the following code to your example of the audio recorder:
in xml:
<WebView id="audioPlayer_webview" src="" ></WebView>
This code is working if I choose an existing mp3 file, not recorded by nativescript-audio. What's different/wrong with the recorde file ? I used android 8.0.0 on moto g6 for testing.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I have a file recorded with nativescript-audio. I can play it with nativescript-audio. However, I want to play it with webview. The problem is that the file recorded by nativescript-audio is not recognized as an mp3: in the webview the file appears empty and cannot be played.
I added the following code to your example of the audio recorder:
in xml:
<WebView id="audioPlayer_webview" src="" ></WebView>
in tns file:
This code is working if I choose an existing mp3 file, not recorded by nativescript-audio. What's different/wrong with the recorde file ? I used android 8.0.0 on moto g6 for testing. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The full code in xml:
The full ts file: