I want to make my own streaming server to stream live into a html page (who will run on WAMP/LAMP or Lighty server).

The idea is that - on site i will stream some videos that are not live (a playlist , users are unable to see it) and at my will... I want to be able to switch live streaming and use a webcam as capture devise (in that moment I want the playlist to stop, a short intro video to be played and after that the user must see what I`m doing on my webcam without loosing any watchers).

The video stream must work on pc and smartphones (preferably on iphones).
All soft side must be Open Source.

Can I do that with VLC ?

I`m open to suggestions !