How to change the hls_stream source in 'loop'? #2231
-
|
I'm using your excellent example hls-buffer-i2s.ino as the basis for this code. Please excuse my ignorance ! Which objects would I have to stop / start (or whatever) to change the hls_stream source within the 'loop'? Is it possible? Skeleton code: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
just call hls_stream.begin(url) again whenever you want to change the url! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Phil, that does work but there is a considerable delay before the station changes. Presumably this is because the copier is still 'playing' a chunk of data from the previous station... is there a way to make the changeover quicker? |
Beta Was this translation helpful? Give feedback.
-
|
'End' which? There are a lot of items with an end(); function ! |
Beta Was this translation helpful? Give feedback.
just call hls_stream.begin(url) again whenever you want to change the url!