如何通过 RTP 发送 SDP [英] How to send SDP over RTP

查看:100
本文介绍了如何通过 RTP 发送 SDP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个应用程序,可以将 RTP 数据包发送到本地 IP 客户端.所以客户端必须监听指定的端口(rtp://:@portnumber,在 VLC 上)才能播放流数据.现在,我将开发创建开始流式传输所需的 SDP 文件所需的代码.

I've developed an app which sends RTP packets to a local ip client. So the client has to listen on the specified port (rtp://:@portnumber, on VLC) to play the streamed data. Right now i'm going to develop the code needed to create the SDP file needed to start streaming.

我的疑问是,如何将这个文件发送给客户端?在 RTP 流的开头?在这一点上真的是 n00b.任何帮助都会有所帮助.

My doubt is, how to send this file to the client? At the beginning of the RTP stream? Really n00b at this point. Any help will be useful.

谢谢

推荐答案

VLC 特别支持 RTSPHTTPSAP 协议建立会话和沟通.当然还有本地文件系统 (file://)

VLC specifically supports RTSP, HTTP, SAP protocols for establishing session and communication. And of course the local file system (file://)

所以基本上你可以像这样以某种方式调用 vlc(我无法测试它,但应该是这样的):

so basically you can call vlc in some manner like this (I cannot test it but should be like this):

vlc file://path/to/sdp-file

vlc rtsp://server-path:port/sdpfile.sdp

等等

除了将 SDP 文件存储在本地系统中之外,如果您在服务器计算机上启动并运行了 http 服务器,那么 HTTP 可能是最简单的.

Aside from storing the SDP file in the local system, perhaps HTTP would be easiest if you have up and running http server on your server machine.

这篇关于如何通过 RTP 发送 SDP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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