Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Local file #25

Closed
atreeon opened this issue Mar 26, 2018 · 1 comment
Closed

Local file #25

atreeon opened this issue Mar 26, 2018 · 1 comment

Comments

@atreeon
Copy link

atreeon commented Mar 26, 2018

I have tried to play a local file but couldn't seem to get this working. Is this supported?

I tried something like the following
await audioPlayer.play('assets/sloths.mp3', isLocal: true);
with the assets directory directly off my main flutter directory

(massive caveat: I am only two days old with flutter and dart! Keep up the good work 👍 )

Errors
E/ExtMediaPlayer-JNI(11260): env->IsInstanceOf fails
E/MediaPlayer-JNI(11260): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
E/ExtMediaPlayer-JNI(11260): env->IsInstanceOf fails
E/MediaPlayer-JNI(11260): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
W/System.err(11260): java.io.IOException: setDataSource failed.
W/System.err(11260): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1095)
W/System.err(11260): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1041)

@atreeon atreeon closed this as completed Mar 26, 2018
@atreeon
Copy link
Author

atreeon commented Mar 26, 2018

#12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant