Page 1 of 1

VLC Player on the website app

Posted: 09 Mar 2011 08:10
by sqz10200
hello!!
i'm j
My English is poor
I want to play RTSP in website ......

RTSP address is "rtsp://192.168.1.168/Video"

I use VLC Player to play correctly in windows.

the VLC Player C/S App

but

how to play RTSP in web site ?????

Who can explain to me the details.

Owing to time constraints.

i need Complete demo

thank your help!!

Re: VLC Player on the website app

Posted: 14 Mar 2011 10:46
by jack.ting
OK,

you can use the code posted on "video image stays on browser window when tabbed" by "richard6235".
just do some modify the URI added on the fninit() to your URI ("rtsp://192.168.1.168/Video").

Re: VLC Player on the website app

Posted: 17 Mar 2011 09:25
by dumoulex
hello,

it's easy, if you're using javascript you can use this :

your URL :
filmsrc = "rtsp://" + addressServer + ":" + port + "/axis-media/media.amp?streamprofile=" + profile ;

the code for the player :
<embed style=\"position:absolute;top:0px;left:0px;\" width=\"" + width + "\" height=\"" + height + "\" type=\"application/x-vlc-plugin\" id=\"MediaPlayer\" fullscreen=true target=\""+filmsrc+"\" autostart=true>");

you have to install the vlc plugin for mozilla before (in the options during the installation of vlc)

for me it's working, even with H264 stream, so I hope you will success !

Good luck
PS : si tu es francais comme je le pense tu peux repondre en francais !