iOS RTP实时音频接收 [英] iOS RTP live audio receiving

查看:157
本文介绍了iOS RTP实时音频接收的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在iPhone中接收实时RTP音频流,但是我不知道如何开始.我正在寻找一些样本,但在任何地方都找不到.

I'm trying to receive a live RTP audio stream in my iPhone but I don't know how to start. I'm seeking some samples but I can't find them anywhere.

我有一个Windows桌面应用程序,该应用程序从选定的音频接口捕获音频并将其作为µ-law或a-law流化.此应用程序充当音频服务器,为该流提供任何传入连接.我必须说,我已经开发了一个可以接收该流的Android应用程序,并且该程序可以运行,因此我想在iOS上复制此功能.在Android中,我们有"android.net.rtp"包来管理该包并通过网络传输或接收数据流.

I have a Windows desktop app which captures audio from the selected audio interface and streams it as µ-law or a-law. This app works as an audio server that serves any incoming connection with that streaming. I have to say that I've developed an Android app that receives that stream and it works, so I want to replicate this functionality on iOS. In Android we have "android.net.rtp" package to manage this and transmit or receive data streams over the network.

iOS是否有任何等效的软件包可以实现此目的?您能给我任何一种参考/样本来做到这一点,还是告诉我从哪里开始?

Is there any kind of equivalent package for iOS to implement this? Could you give me any kind of reference / sample to do this, or just tell me where to start?

推荐答案

您可以看到此库 aelam/HTTPLiveStreaming-1 ,我仍在研究中,可以通过ffplay播放.你可以试试 检查ffmpeg中的rtp.c文件,我认为这会有所帮助

You can see this libraryHTTPLiveStreaming, But his protocol maybe is not standard one, You can check my fork aelam/HTTPLiveStreaming-1, I'm still working on it, it can be played by ffplay. You can try check the file rtp.c in ffmpeg, I think it will help out

这篇关于iOS RTP实时音频接收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆