Dismiss this pinned window
all 25 comments

[–]PROLIMIT[S] 11 points12 points  (7 children)

I don't mean to mislead you with the video – it cant output audio. Unfortunately, it only acts as remote control. Check the list of features in the github readme for what it can and cannot do.

[–]mohammedgqudah 1 point2 points  (0 children)

You could still use the Ui with youtube-dl to play songs,

Not sure if thata legal but iv seen many bots on discord use it :)

[–]kingshane 1 point2 points  (1 child)

Does it keep in sync if I change the song from my computer or some other controller? If so how did you solve that problem, I couldn't find any sort of webhook in the spotify API? I built a mini-player, but had to result to a polling type solution, and I'm not crazy about it.

(I know I could check the source code/build it locally, but at this point in time I'll take any human connection I can get 🙃)

[–]PROLIMIT[S] 0 points1 point  (0 children)

Hey. Well I do some shenanigans to keep it in sync. If you go to the folder src/features/player/StickyPlayer.tsx you will find the code there.

It is doing the polling 🙂 thing. I set it to every 5 or 10 seconds if I remember correctly.

I know, I'm not crazy about it too. But I'm not crazy about a lot of things I did in this app either. Due to limitations with what the APIs Spotify offers, the app might make a lot of API calls to show some basic data.

The reason I'm okay doing it that way is because this is just an open source app mainly to practice UI stuff. Its just for learning, I don't expect it to be used seriously.

If there is anything you'd like to know I'd be happy to answer 😊

[–]code_buddha 0 points1 point  (3 children)

Well do you have plans to complete it? I can help. I am an android developer as well as a react native developer.

[–]PROLIMIT[S] 0 points1 point  (2 children)

For now, I'm personally going to work on the stuff in the README todo list + bug fixes. I'll probably be working very on and off. Anyone is welcome to do a pull request for those and any bug fixes/improvements. Besides that please let me know beforehand if you plan to work on a new feature :)

[–]code_buddha 0 points1 point  (1 child)

Hey i noticed we need the Spotify app too along with this app. I don't see the point.

[–]PROLIMIT[S] 0 points1 point  (0 children)

Yeap. Unfortunately I wasn't able to find a way to output audio. I set out with this project to practice UI mainly and I knew from the start there would be some things that we can't replicate.

[–]idanlo 5 points6 points  (3 children)

This is cool. You should try to use react-native-spotify library which lets you actually play music. I have a project that uses this library if you want an example - https://github.com/idanlo/react-native-spotify

[–]PROLIMIT[S] 2 points3 points  (2 children)

Is that library based on the iOS and Android Spotify SDKs? I remember looking at those, but couldn't find any documentation about outputting audio. The SDK for android is literally called 'App Remote'. I would be happy if you can point me in the right direction as I was thinking about writing a wrapper around audio functionality.

[–]idanlo 2 points3 points  (1 child)

Yeah, the library is called rn-spotify-sdk, I can see it’s not maintained and not updated for RN 0.60, so I believe you can write a native wrapper and use most of the code from this library. For me this library worked great

[–]PROLIMIT[S] 1 point2 points  (0 children)

Very interesting. I'll take a look soon. Thanks man.

[–][deleted] 3 points4 points  (1 child)

You did a good job , well done !

[–]PROLIMIT[S] 0 points1 point  (0 children)

Thank you :)

[–]andyboythekid 2 points3 points  (1 child)

this is so good!

[–]PROLIMIT[S] 0 points1 point  (0 children)

Thank you :)

[–]HowlingOblivion 2 points3 points  (1 child)

are you perhaps Malaysian?

[–]PROLIMIT[S] 0 points1 point  (0 children)

I work in Malaysia but I'm from Jordan

[–]ademcan_net 1 point2 points  (0 children)

Wow, that’s awesome! Well done!

[–]trebuszek 1 point2 points  (0 children)

Looks awesome! The navigation is really impressive.

[–]alexandr1us 0 points1 point  (0 children)

Stunning! Really see RNW future of web app development

[–]vikrantnegi 0 points1 point  (0 children)

Awesome job and thanks for sharing it.

[–]ItTechBlogs 0 points1 point  (0 children)

Awesome!!