Replies: 3 comments 4 replies
-
After 2nd time adContext, skip and continue playing audio.loop(). // 全局变量 void audio_showstreamtitle(const char *title) { |
Beta Was this translation helpful? Give feedback.
-
the parent URL is: |
Beta Was this translation helpful? Give feedback.
-
I think I found the solution to Skip streamtitle with "adContext=" & Fast stream. void loop(){ |
Beta Was this translation helpful? Give feedback.
-
https://stream.rcs.revma.com/crec9cmbv4uvv/4_1nkogcreico9v02/playlist.m3u8
https://stream.rcs.revma.com/crec9cmbv4uvv?playlist.m3u8
https://stream-eu-a.rcs.revma.com/488kt4sbv4uvv/68_1txzsglqw5l3t02/playlist.m3u8
https://stream-eu-a.rcs.revma.com/488kt4sbv4uvv?playlist.m3u8
Hi Folk,
Any idea to skip "adContext=" from https://stream.rcs.revma.com & https://stream-eu-a.rcs.revma.com ?
Below is my temporary solution.
// 全局变量
const char *streamTitle = NULL;
const char *streamURL = NULL;
void audio_lasthost(const char *url) {
Serial.print("lasthost ");
Serial.println(url);
// 更新全局变量
streamURL = url;
}
void audio_showstreamtitle(const char *title) {
Serial.print("streamtitle ");
Serial.println(title);
// 当streamtitle检测是否包含 "adContext="
if (strstr(title, "adContext=") != NULL) {
// 包含 "adContext",执行连接操作
Serial.print("lasthost:::: ");
Serial.println(streamURL);
audio.connecttohost(streamURL);
delay(1000);
audio.loop();
Serial.println("检测到广告");
}
}
Beta Was this translation helpful? Give feedback.
All reactions