Тёмный

#3 - Reading Audio Files From Device - Music Player With Expo React Native - Part 1 

Full Stack Niraj
Подписаться 12 тыс.
Просмотров 19 тыс.
50% 1

#musicplayer #expo #reactnative
In this video series we are creating a music player app using React Native and now it is the time to see how we can read all the local audio files from the device. In this particular video we will see how we can request to read audio files.
Support this channel: / ndpniraj
You can SUBSCRIBE to see upcoming videos:
PRESS HERE
bit.ly/363N9Xf
Complete Resources:
Social Media Links
Facebook - / ndpniraj
Instagram - / ndpniraj
Twitter - / ndpniraj

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@raboija
@raboija 3 года назад
Great playlist by the way
@zhan2780
@zhan2780 2 года назад
Hi! I need some help, for some reason when I use the MediaLibrary from expo it is not giving me any assets do I need some additional configuration for this? media.assets.length = 0
@fsniraj
@fsniraj 2 года назад
Are you using emulator or physical device? Try using physical device only.
@AkshatKumawat
@AkshatKumawat 3 года назад
Hi , I just want to ask. You switched to class component instead of functional component.. Can it be done in functional component ? Why you preferred class component. I get really confused.. I usually notice this thing in other programmers.. Can you please clear this to me. ?
@fsniraj
@fsniraj 3 года назад
If you follow this tutorial from day one then I have already told you guys about this, but let me tell you again. To render audio list inside this app we are using RecyclerListView component insted of FlatList or ScrollView component and using class component makes easy to work with RecyclerListView component but if you want to use FlatList or ScrollView component insted of RecyclerListView component then you can go with functional component as well. And I found lots of guys are confused between class and functional components I think I should make a video about it.
@AkshatKumawat
@AkshatKumawat 3 года назад
@@fsniraj thank you for your quick response. Yes please make a separate video on this. There isn't any video on youtube about this when we should use which component.
@raboija
@raboija 3 года назад
@@fsniraj I think it can be done with functional component
@brnbk8910
@brnbk8910 5 месяцев назад
Está funcionando ainda? Em 2024
@web_dev_with_ak
@web_dev_with_ak 4 месяца назад
Bhai mai bhi non degree hu
@tsogangmosweswe6545
@tsogangmosweswe6545 3 года назад
subscribed
@supunmalinda5172
@supunmalinda5172 3 года назад
sir, I need load all audio files which save in my project folder only. (./assets/audio/*). How should i coding this?
@fsniraj
@fsniraj 3 года назад
I don't know the exact solution but I hope you may find your solution here docs.expo.dev/versions/latest/sdk/filesystem/
@supunmalinda5172
@supunmalinda5172 3 года назад
​@@fsniraj ok. I'll try. Thanks
@supunmalinda5172
@supunmalinda5172 3 года назад
@@fsniraj I build karaoke tracks playing app for my degree project. I am following your media-player tutorial series for build this app.
@fsniraj
@fsniraj 3 года назад
Nice to hear that brother, best of luck.
@gustavoaguiar9937
@gustavoaguiar9937 3 года назад
3:44 how did you do it
@fsniraj
@fsniraj 3 года назад
for this you need to connect your app to the expo and only then you will see this, it's a response while device asks to read media files. watch previos videos from this series if you want to know more.
@gustavoaguiar9937
@gustavoaguiar9937 3 года назад
@@fsniraj thank you so much
@mazharulalam3885
@mazharulalam3885 2 года назад
getPermissionAsync method not working here, canAskAgain option was false by default.... how can i reset it?
@fsniraj
@fsniraj 2 года назад
Maybe that is because of you denied permission from the expo go app. You can clear the storage and cache from app info setting. Press and hold on your expo go app and press on app info and clear cache and clear storage, if you are using android.
@mazharulalam3885
@mazharulalam3885 2 года назад
@@fsniraj thanks for reply.. I will try and let u know...
@mazharulalam3885
@mazharulalam3885 2 года назад
@@fsniraj i have clear cache then it not working, then clear data still not working....
@mazharulalam3885
@mazharulalam3885 2 года назад
i have uninstalled and install again then first time i have called .getPermissionAsync is response, Object { "canAskAgain": true, "expires": "never", "granted": false, "status": "undetermined", } then called requestPermissionAsync there is no pop but in log it's showing Object { "canAskAgain": false, "expires": "never", "granted": false, "status": "undetermined", } this result, i think expo automatically denying......
@fsniraj
@fsniraj 2 года назад
Can you send me the GitHub repo link on @ndpniraj instagram
@matthewjin3337
@matthewjin3337 2 года назад
Greate Video! It plays mp3 file perfectly but not working with flac file. Do you know how to play flac file on expo?
@fsniraj
@fsniraj 2 года назад
Sorry I don't know what FLAC is check out the expo-av documentation for more.
@matthewjin3337
@matthewjin3337 2 года назад
@@fsniraj thanks for your quick response. yes I have checked expo-av document but don't get exact answer.
@_.vedant_p
@_.vedant_p 2 года назад
can you tell me a similar library for bare react native project?
@fsniraj
@fsniraj 2 года назад
Don't know bro sorry.
@alexandruzaharia989
@alexandruzaharia989 2 года назад
react-native-track-player. That is instead of expo-av
@Joseph_S79
@Joseph_S79 3 года назад
Hey. Please make a playlist with ready api songs. Please))
@fsniraj
@fsniraj 3 года назад
ok you are talking about music streaming apps like spotify. we will see that in future.
@Joseph_S79
@Joseph_S79 3 года назад
@@fsniraj Yes, like spotify, but spotify is too complicated interface, I would like to see the same interface as in your application that you are doing now
@raboija
@raboija 3 года назад
Was a great tutorial but I dont see why using class components in 2021
@fsniraj
@fsniraj 3 года назад
Yah I know but you can read this post here I mentioned briefly why I am using class components dev.ndpniraj.com/react-native-audio-player/
Далее
React native track player | reading docs
8:45
Просмотров 18 тыс.
У НАС ДОМА ЗАВЕЛАСЬ КРЫСА 🐀
01:00
Manipulating the Splash Screen (with VIDEO)
20:33
Просмотров 11 тыс.
Create a music service in React Native
21:35
Просмотров 21 тыс.
IMPOSSIBLE Chess Bot Ruined My Life
28:04
Просмотров 175 тыс.
React Native Image Upload with Expo and PHP 🤩
18:31
Spotify Player - “Can it be done in React Native?”
27:53
Expo CLI vs React Native CLI
8:20
Просмотров 24 тыс.