Streaming RTP packets over TCP

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
sairam
New Cone
New Cone
Posts: 4
Joined: 17 Jul 2013 05:32

Streaming RTP packets over TCP

Postby sairam » 17 Jul 2013 05:47

I am using the VLC activex control on a webpage to stream rtp video.
In the default implementation, VLC activex tries UDP first.
But since the server is behind a firewall, VLC is unable to receive UDP packets.

After 10 seconds of timeout, VLC tries RTP over TCP and then the video plays fine.

The problem I face is the initial delay.
Is there any way to tell the VLC activex control not to try UDP at all?
Or is there a way to set the timeout for 1 second or less.
Or Can I change the code in server (during RTSP initialization) to somehow indicate to VLC that server does not suppor UDP?

Please let me know how to remove (or reduce) the initial delay because of VLC trying RTP over UDP and failing.
(I see that such an option exists in the VLC player application. But I am not able to achieve it in activex)

regards
sairam

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Streaming RTP packets over TCP

Postby Jean-Baptiste Kempf » 17 Jul 2013 19:04

Use --rtcp-tcp option.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sairam
New Cone
New Cone
Posts: 4
Joined: 17 Jul 2013 05:32

Re: Streaming RTP packets over TCP

Postby sairam » 23 Jul 2013 02:46

Jean,
Thanks for the reply.
But I tried this option and it did not work.

Here is the snippet of my code
var options = new Array("--rtcp-tcp");
var id = controlVLC.playlist.add(URL, "some name", options);

VLC web control sends UDP as packet type first. When no packets reaches the client then it switches to TCP.
This is the default behaviour. The option does not seem to have changed it.

I read somewhere in the forum that web control does not take command line options (something related to untrusted options)
Could that be the reason why the option is not working? Should I take a different build?
Or is there some way in the server to tell that it does not support UDP packets (I can modify the server code too).

Thanks
sairam

sairam
New Cone
New Cone
Posts: 4
Joined: 17 Jul 2013 05:32

Re: Streaming RTP packets over TCP

Postby sairam » 25 Jul 2013 06:15

Hello Jean,
I fixed this problem in the server side by returning an error

461 Unsupported transport

for UDP.
Now the video shows up without delay.

Thanks
sairam


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests