New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Play Local Audio #354
Comments
I think this is plausibly a "frequently asked question", although the answer is rather straightforward: This plugin does not play audio. This plugin only wraps around your existing audio code to allow it to work in the background, but it doesn't care how you actually play the audio. It's up to you to use other plugins to play the audio. This is what I have tried to explain in the README file, although hopefully a FAQ entry will help. If you look at the example, you'll see it uses the |
Sorry for my confusion question. I want to know that, if we want to play local or asset audio , |
The id is just a unique id for your media item. As per the documentation: /// Metadata about an audio item that can be played, or a folder containing
/// audio items.
class MediaItem {
/// A unique id.
final String id; It is not required to be a URL. |
if i placed asset file url . or local url. it doen't read it.how do I solve that? |
If I add this question to the FAQ, I need it to be a clear question. Can you clarify what each of your two "it" references refer to? |
if I call Local assets audio file in MediaItem like this |
Can you rephrase your question without using the word "it"? That way I will hopefully know what you mean. |
You can use setAsset() instead of setUri(), like this: setAsset("assets/audio/1591766340463.mp3"); |
I'm sorry this issue is closed. But I will improve the documentation if you submit a documentation request describing which part of the documentation i should improve. Please click on "New issue", and then click the appropriate link from that page. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service. |
How can we play local audio with this plugin?
The text was updated successfully, but these errors were encountered: