You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a Media using external url but play() function doesn't work and can't get any information from the events. I'm testing it on my external physical Android 14 device.
Expected behavior:
Load the external URL and play music.
Related code:
import { Media, MediaObject } from '@awesome-cordova-plugins/media'
function handleAudio(){
const file: MediaObject = Media.create("https://example.com/audio.mp3");
file.onStatusUpdate.subscribe(status => alert(status));
file.onSuccess.subscribe(() => alert('Action is successful'));
file.onError.subscribe(error => alert(error));
file.play()
}
I see the same behavior on an iOS device. The logs also show the error Native: tried accessing the Media plugin but it's not installed, when trying to play any media.
Also, when I run npx cap sync it lists that it finds several Capacitor plugins, but Media is not on that list.
I'm submitting a ...
Current behavior:
I'm creating a Media using external url but
play()
function doesn't work and can't get any information from the events. I'm testing it on my external physical Android 14 device.Expected behavior:
Load the external URL and play music.
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: