VLC Player on the website app

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
sqz10200
New Cone
New Cone
Posts: 1
Joined: 09 Mar 2011 07:45

VLC Player on the website app

Postby sqz10200 » 09 Mar 2011 08:10

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!!

jack.ting
Blank Cone
Blank Cone
Posts: 35
Joined: 19 Jan 2011 04:04

Re: VLC Player on the website app

Postby jack.ting » 14 Mar 2011 10:46

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").

dumoulex
New Cone
New Cone
Posts: 5
Joined: 16 Feb 2011 16:53

Re: VLC Player on the website app

Postby dumoulex » 17 Mar 2011 09:25

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 !


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests