SHARE
TWEET

Untitled

a guest Jan 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MediaElement sound = new MediaElement();
  2.             Uri sourceSound = new Uri("examplepage.com/getSound.php?animal=dog");
  3.             sound.Source = sourceSound;
  4.             sound.MediaFailed += sound_MediaFailed;
  5.             try
  6.             {
  7.                 System.Diagnostics.Debug.WriteLine(sourceSound.ToString());
  8.                 sound.Play();
  9.             }
  10.             catch (Exception)
  11.             {
  12.                 System.Diagnostics.Debug.WriteLine("Can't play sound !");
  13.             }
  14.    
  15. header('Content-Type: audio/mp3');
  16. $translatorObj = new HTTPTranslator();
  17. $strResponse = $translatorObj->curlRequest($url, $authHeader);
  18. echo $strResponse;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top