iamAbhishekkumar / Luna

Relaxing Music App
40 stars 11 forks source link

Read my own music from cloud #19

Closed shuaibidshuaib closed 3 years ago

shuaibidshuaib commented 3 years ago

Pls sir help me im kind of newbie to flutter, i want the app to display my own music from cloud instead of yours pls how can i do that, i saw that u use firebase , pls assist me . I working on a school project and i need to submit it .

iamAbhishekkumar commented 3 years ago

Your own music? If you mean, the songs which are locally present. Then this would be helpful, since just_audio is itself using audio players, so you can try to load your file as follows :

Future _loadFile() async {
    final bytes = await readBytes(Uri.parse(kUrl1));
    final dir = await getApplicationDocumentsDirectory();
    final file = File('${dir.path}/audio.mp3');

    await file.writeAsBytes(bytes);
    if (file.existsSync()) {
      setState(() => localFilePath = file.path);
    }
  }
shuaibidshuaib commented 3 years ago

Hello brother i tried running my telegram but were having network issues in my area (im from africa), well please can you help me on how to store my own music in the firebase and make them appear in the luna app , just like how yours did, ill love to get response thank you sir. pls help me , im a newbie to flutter and im trying to learn something from your project to apply it in my school project.

On Sun, Oct 3, 2021 at 4:55 PM Abhishek Kumar @.***> wrote:

Closed #19 https://github.com/iamAbhishekkumar/Luna/issues/19.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iamAbhishekkumar/Luna/issues/19#event-5399995534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUZEYAZDKWYWPJYP7HXJ35TUFB4HHANCNFSM5FHNLQAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

shuaibidshuaib commented 3 years ago

Like i mean even if its similar to this https://raw.githubusercontent.com/salvadordeveloper/TikTok-Flutter/master/images/database.png

On Tue, Oct 5, 2021 at 11:30 PM Shuaibu Ibrahim Danjummai < @.***> wrote:

Hello brother i tried running my telegram but were having network issues in my area (im from africa), well please can you help me on how to store my own music in the firebase and make them appear in the luna app , just like how yours did, ill love to get response thank you sir. pls help me , im a newbie to flutter and im trying to learn something from your project to apply it in my school project.

On Sun, Oct 3, 2021 at 4:55 PM Abhishek Kumar @.***> wrote:

Closed #19 https://github.com/iamAbhishekkumar/Luna/issues/19.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iamAbhishekkumar/Luna/issues/19#event-5399995534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUZEYAZDKWYWPJYP7HXJ35TUFB4HHANCNFSM5FHNLQAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.