In MediaPlayer.create method an id to a Raw file can be used but how to use that in setDataSource method?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can load the raw audio into an input stream and load it into a MediaPlayer as you would a normal stream:
and then follow a streaming tutorial like pocketjourney
But this is overly complicated as you can just call