Nitesh Kothari
Nitesh Kothari

Reputation: 888

Base64 Audio Issue in Windows Phone 8

I am creating windows phone 8 application, and getting Base64String Audio from Web Service response, How do I convert it and play it using MediaElement or? I tried but not getting the result. See my code.

String file = "askjakfgksdguuqeiqheiqe/34q/asas2j/asasaadadada";
byte[] playbyte = Convert.FromBase64String(file);
MemoryStrem stream = new MemoryStream(playbyte,0,playbyte.Length);
MediaElement.SetSource(stream);
MediaElement.Play();

I also tried using IsolatedStorage but didn't succeed.

How to do it?

Upvotes: 0

Views: 83

Answers (1)

esskar
esskar

Reputation: 10970

AIFF is not supported on WP8, see also Supported media codecs for Windows Phone 8 as a reference.

Upvotes: 1

Related Questions