Forum Xamarin.Android

How to play password protected mp3 song in xamarin.android?

Hi,

I want to play password protected mp3 song in xamarin.android.

currently i am using :

CrossMediaManager.Current.Play(url);

I have also tried to add headers :

CrossMediaManager.Current.RequestHeaders = new Dictionary<string, string> {{"username","password"}};

But nothing works for me when i hit this request in browser it prompt me for username and password but in the app it is giving me error . So, anyone who have worked with password protect mp3 song in xamarin.android can give me any hint how can i play password protected mp3 songs in media player?

Regards,
Shelly

Sign In or Register to comment.