Can i play mp3 music file from google drive link in my apps?

hi there
i trying to build music player apps and do not to put mp3 file in my apps, so i tried to call mp3 file from google drive link. Would you be so kind to show the blocks editor must be set?
Thanks you very much

  • Put the sound.mp3 into the assets and play it from there or
  • upload the sound to Google Drive and play it via direct link from there or

ah thank you so much

it still can not play file from my google drive

Use direct link:

See also here, point 3:

sorry for asking again
so this is my google drive link : https://drive.google.com/file/d/1Orobm7t2ou1LQTsdrKHFxOVQgiT1d_aI/view?usp=sharing

and then i should change in to these?
https://drive.google.com/uc?export=download&id=1Orobm7t2ou1LQTsdrKHFxOVQgiT1d_aI/view?usp=sharing

thx for your help

No, only the id at the end.

this link :
https://drive.google.com/uc?export=download&id=1Orobm7t2ou1LQTsdrKHFxOVQgiT1d_aI
only order to download in to our device
can i just play the file without download it first?

thx so much

As I said, play it from the assets.

This might work:

https://drive.google.com/uc?id=1Orobm7t2ou1LQTsdrKHFxOVQgiT1d_aI

Try in your browser first....

1 Like

I misunderstood. You can play the sound directly from this link (no download before).

Try this: playerTest.aia (171.6 KB)

Or set the Player.Source to sound.mp3 (loop.ogg in my example) and play the sound from there,

1 Like

Thx u so much for your help
since my link from google drive already working ( thx to TMA12)
https://drive.google.com/uc?id=1FlucjGcHYeskhCeShexXeYzjBqKkTGOw

next i want to use list view to call them

these is my blocks :

and when i try in android phone, its error like this

this is my aia file
player.aia (223.4 KB)

please advice whats is wrong

thx u so much

You canot load a list into Player1.Source, you have to load one at a time

2 Likes

please give example what should i do sir

See the jukebox example at the bottom of this page - it uses local files but the principle is the same

https://puravidaapps.com/file.php

1 Like

the juxebox.aia download link is not avaliable any more

It is

image

Also a simple approach is shown below

2 Likes

thx u so much !!!!

1 Like