Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Media Player in Android (VS) error

$
0
0

I tried to follow the Xamarin Play Audio Recipe but using a Duck.wave file instead of test.mp3

I have the line: _player = MediaPlayer.Create(this, Resource.Raw.Duck);

But get an error: 'PetSounds.Android.Resource' does not contain a definition for 'Raw'_

Note: PetSounds.Android is the name of the project

Could the problem be that I am not adding the wave file or raw folder to the Resources correctly? How do I fix my problem???


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>