How to send SDP over RTP

北城余情 提交于 2019-12-08 05:08:12

问题


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.

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.

Thanks


回答1:


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

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

or

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

and so on

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.



来源:https://stackoverflow.com/questions/12858611/how-to-send-sdp-over-rtp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!