在VLC播放器中播放RTSP流 [英] Playing RTSP stream in VLC player

查看:1474
本文介绍了在VLC播放器中播放RTSP流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用Java创建一个简单的rtsp流服务器.服务器能够将视频正确地流式传输到自定义的书面播放器.

I am trying to make a simple rtsp streaming server in java. The server is able to stream the video properly to the custom written player.

我无法在vlc媒体播放器中播放相同流的问题. 当我启动vlc媒体播放器并输入流媒体详细信息时,我的服务器正在显示vlc发出的以下请求:

The problem I that I am not able to play the same stream in vlc media player. When I start the vlc media player and enter the streaming details, my server is displaying the following request made by vlc:

OPTIONS rtsp://192.168.2.8:8210/movie.3gp RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07)

作为回应,我将以下内容发送给vlc播放器:

In response, I am sending the following to the vlc player:

RTSP/1.0 200 OK
Supported:  play.basic, con.persistent
CSeq: 1
Server:  Android mini RTSP Server
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

此后,vlc媒体播放器向我发送了null token,但我希望使用DESCRIBESETUP令牌.

After this, vlc media player is sending me a null token but I am expecting DESCRIBE or SETUP token.

有人知道为什么vlc向我发送null token吗?我对VLC的要求有什么遗漏吗?

Any idea why vlc is sending me null token? Is there anything I am missing in the response to the vlc's request?

推荐答案

请尝试尽可能靠近rfc. http://www.ietf.org/rfc/rfc2326.txt

try to keep as close as possible to the rfc. http://www.ietf.org/rfc/rfc2326.txt

尝试删除支持的:"和服务器:"行.

try to remove the Supported: and Server: lines.

这篇关于在VLC播放器中播放RTSP流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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