upload sound from external server

Contributor ,
Jun 02, 2021 Jun 02, 2021

Copy link to clipboard

Copied

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.

Views

74

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Solved. I needed download link

Likes

Translate

Translate

Report

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