Hi,
On 29/04/2016 03:25, Jinxue Huang wrote:
I am a student, and I want to write a music player use pyglet, but I
don't know how to realize continuously playing music. If I have a
music list which is an Array type, how can I play this list not stop,
but also can control the player,such as pause, stop, next song?
Using something like pyglet.clock.schedule, have something check if the
current track has finished. If it has, go to the next one.
Remember your location in the track list with some sort of index thing,
or just simply have a play queue, and use queue.pop.
HTH,
--
You received this message because you are subscribed to the Google
Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.