Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcp stream (AUD-5968) #1340

Open
davidHuW opened this issue Jan 2, 2025 · 4 comments
Open

tcp stream (AUD-5968) #1340

davidHuW opened this issue Jan 2, 2025 · 4 comments

Comments

@davidHuW
Copy link

davidHuW commented Jan 2, 2025

  • Audio development kit: [ESP32-LyraT]
  • IDF version: v5.3.1
  • ADF version: adf-master

Problem Description

使用TCP_STREAM读取音频流播放音乐,在TCP_CONNECT事件回调 暂停整个player pipeline,等待多个播放器同步后,执行resume pipeline,但是tcp_stream直接报了读取超时,整个pipeline暂停并没有停止tcp_stream读取,请问这种情况该如何处理,谢谢

@github-actions github-actions bot changed the title tcp stream tcp stream (AUD-5968) Jan 2, 2025
@jason-mao
Copy link
Collaborator

暂停的时间是多长,是不是确实是tcp 超时了?

@davidHuW
Copy link
Author

暂停的时间是多长,是不是确实是tcp 超时了?

手动resume的,时间不定,tcp是超时的,疑问是pause pipeline,所有的audio element应该都是paused的,tcp stream还在继续判断超时等待吗?

@shootao
Copy link

shootao commented Feb 13, 2025

@davidHuW 你 tcp server 用的是什么脚本 ?

@jason-mao
Copy link
Collaborator

暂停的时间是多长,是不是确实是tcp 超时了?

手动resume的,时间不定,tcp是超时的,疑问是pause pipeline,所有的audio element应该都是paused的,tcp stream还在继续判断超时等待吗?

TCP 超时等待中,tcp read函数不会返回,element 就是阻塞状态

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants