kadiks / react-native-itunes

iTunes module for React Native
MIT License
62 stars 39 forks source link

next() and previous() not working #17

Closed SafnaAzeez closed 6 years ago

SafnaAzeez commented 6 years ago

next() and previous() are not playing the next and previous songs

kadiks commented 6 years ago

Hi,

Can I see your code to have a little bit more context?

Thx

SafnaAzeez commented 6 years ago

On 26-Jul-2018, at 4:04 PM, Jénaïc Cambré notifications@github.com wrote:

Hi,

Can I see your code to have a little bit more context?

Thx

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kadiks/react-native-itunes/issues/17#issuecomment-408053865, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae4zQagyJQY0l2MzB3mE90HMJkLsqPMUks5uKZsigaJpZM4VcVq5.

nextTrack = () => { iTunes.next(); }

kadiks commented 6 years ago

You need to have several Track items in queue.

So you need to do a getTracks, then a playTracks([Tracks])

If there are several Tracks in queue, so you can use next.

You may have used playTrack or you may have only one track returned in your getTracks. This piece of code you showed me has not enough context for me to help you exactly.

SafnaAzeez commented 5 years ago

so what if we need to play a specific track from playlist and then choose next?