Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

upload sound from external server

Contributor ,
Jun 02, 2021 Jun 02, 2021

Good Morning. I am trying to load an mp3 audio from a web server (specifically google drive). I do this. The url is the one with the most rights (editor):

 

 

var mySound:Sound = new Sound();
var req:URLRequest = new URLRequest("https://drive.google.com/file/d/1mlNVuWElTDpw4BpWmaiotfVkCl9r0tBk/view?usp=sharing");
mySound.load(req);
mySound.play();

 

the problem is that when debugging the movie it doesn't give an error and it doesn't do anything. I don't know if the fault is in the code or the Url that I use or if I have to change something in animate so that it can use files from an external server ...

I appreciate the help.

180
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 02, 2021 Jun 02, 2021
LATEST

Solved. I needed download link

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines