This funcionality seems to be disabled in VLC since version 0.9. I managed to get it work by a small modification in the code, in the file: src/input/vlm.c:
In function Manage(), line 345, I replaced:
Code: Select all
/* FIXME implement multiple input with VOD */
if( p_media->cfg.b_vod || i_new_input_index >= p_media->cfg.i_input )
vlm_ControlInternal( vlm, VLM_STOP_MEDIA_INSTANCE, p_media->cfg.id, p_instance->psz_name );
else
vlm_ControlInternal( vlm, VLM_START_MEDIA_BROADCAST_INSTANCE, p_media->cfg.id, p_instance->psz_name, i_new_input_index );
with:
Code: Select all
if( i_new_input_index >= p_media->cfg.i_input )
vlm_ControlInternal( vlm, VLM_STOP_MEDIA_INSTANCE, p_media->cfg.id, p_instance->psz_name );
else
if ( p_media->cfg.b_vod ) /* VoD */
vlm_ControlInternal( vlm, VLM_START_MEDIA_VOD_INSTANCE, p_media->cfg.id, p_instance->psz_name, i_new_input_index, "dummy_string");
else /* Broadcast */
vlm_ControlInternal( vlm, VLM_START_MEDIA_BROADCAST_INSTANCE, p_media->cfg.id, p_instance->psz_name, i_new_input_index );
It works fine for me, the only condition is that the first file of the stream must be playable, otherwise the stream won't play. I use VLC 1.0.1.