Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MediaElement sound = new MediaElement();
- Uri sourceSound = new Uri("examplepage.com/getSound.php?animal=dog");
- sound.Source = sourceSound;
- sound.MediaFailed += sound_MediaFailed;
- try
- {
- System.Diagnostics.Debug.WriteLine(sourceSound.ToString());
- sound.Play();
- }
- catch (Exception)
- {
- System.Diagnostics.Debug.WriteLine("Can't play sound !");
- }
- header('Content-Type: audio/mp3');
- $translatorObj = new HTTPTranslator();
- $strResponse = $translatorObj->curlRequest($url, $authHeader);
- echo $strResponse;
Add Comment
Please, Sign In to add comment