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

android 1.9.2版本播放avkcp协议的视频流黑屏 #70

Open
YXHTom opened this issue Jan 12, 2023 · 5 comments
Open

android 1.9.2版本播放avkcp协议的视频流黑屏 #70

YXHTom opened this issue Jan 12, 2023 · 5 comments

Comments

@YXHTom
Copy link

YXHTom commented Jan 12, 2023

android最新的 1.9.2代码的版本,播放avkcp协议的视频流黑屏;调试发现源码avkcpc.c文件第126行开始
while (1) {
if ((ret = recvfrom(avkcpc->client_fd, buffer, sizeof(buffer), 0,
(struct sockaddr *) &fromaddr, &addrlen)) <= 0)
break;
ikcp_input(avkcpc->ikcp, (char *) buffer, ret);

    }

在这里死循环了;
使用1.8.4的代码编译的Android就可以正常播放,能修复下这个bug吗

@rockcarry
Copy link
Owner

能否帮忙确认下是最近哪个提交点改出来的问题?

@YXHTom
Copy link
Author

YXHTom commented Jan 13, 2023

用你打包的apk测试,从1.9.0开始avkcp直播流黑屏,1.8.4是正常的

@rockcarry
Copy link
Owner

是否是用的 aac 编码,换成 alaw 试过没?

@YXHTom
Copy link
Author

YXHTom commented Jan 15, 2023

我的输入源只有视频流,没有音频流

@rockcarry
Copy link
Owner

v1.9.3 解决了这个问题,请测试确认。

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

2 participants