[vlc] Re: Sharing information between http interface instances.

Michel Van den Bergh michel.vandenbergh at uhasselt.be
Sun Aug 20 10:37:45 CEST 2006


Clément Stenac wrote:

>If I understand correctly, it's used directly in the HTTP interface
>scripts. This is not ideal as your clients won't notice if the playlist is
>updated by something else than by another client. For example, a services
>discovery module might add something and you will not notice it.
>
>A better way would have to have a "serial" variable in p_playlist, and to
>update it each time a modification is made to the playlist.
>
>By the way, how does the HTTP interrface currently handle playlist updates
>(don't have access to the code here) ?
>
>  
>
Hi,

It seems to me that the cleanest approach is to create a serial variable
in the
playlist object in the http interface module and to add a callback to
intf-change
to increment this variable. I am currently trying this approach.

Regards,
Michel

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list