[vlc-devel] [PATCH 3/3] chromecast: add an experimental sout module that connects to a ChromeCast device and streams using the HTTP access output

Francois Cartegnie fcvlcdev at free.fr
Tue Sep 16 13:23:01 CEST 2014


Le 16/09/2014 12:53, Adrien Maglo a écrit :
> Le 16/09/2014 12:09, Francois Cartegnie a écrit :

> Yes, maybe.
> This is how I first interpreted the utility of these PING PONG messages.
> I may be wrong but as we do not have a spec, it is difficult to know
> what's the real purpose of this.
> Besides, I have not been able yet to reproduce the timeout issues you
> and j-b have.

I still have some after few mins, which means ping loss happens both way.

>> We also might not want to poll for 6 sec in case of missed ping as the
>> device ping frequency is not related to current reply delay. ex: wait 3
>> times send ping/1 sec for a pong reply then give up.
> 
> I do not understand exactly what you mean here.

That you don't need to wait another 6 sec for a reply when sending a
spontaneous ping to device. (see below)

> Your fixup patch interprets differently the meaning of these messages.
> If the aim is to just reply PONG any time the device sends a PING,
> without paying attention to the timings, then I think this part of the
> code could be much more simplified.

If you miss PING, you're done as you'll never PONG.
But you can issue a PING yourself to keep the connection up and expect a
PONG from device.
You probably can also issue PONG without PING. There's no sequence in
those messages.

Francois



More information about the vlc-devel mailing list