Skip to content

how to group_call_raw change music? #132

Answered by nitanmarcel
hdcola asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. There are 2 hints that the audio playback has ended:

  1. The for loop reading the frame has ended. Happens when the stream reaches the end.
  2. on_played_data doesn't return any bytes (eg. data is None).

Checking these two will gives you the feedback if the stream has ended or not.

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nitanmarcel
Comment options

Comment options

You must be logged in to vote
7 replies
@hdcola
Comment options

@nitanmarcel
Comment options

@nitanmarcel
Comment options

@hdcola
Comment options

@nitanmarcel
Comment options

Answer selected by hdcola
Comment options

You must be logged in to vote
3 replies
@nitanmarcel
Comment options

@nitanmarcel
Comment options

@nitanmarcel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants