VLC 1.1.4 stream to firefox

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Luft_inspektor
New Cone
New Cone
Posts: 1
Joined: 26 Oct 2010 14:58

VLC 1.1.4 stream to firefox

Postby Luft_inspektor » 26 Oct 2010 15:26

I know there is a lot of topics with this issue but maybe I'm just stupid and can't get it to work.

This is what I need.....

I have IP camera which is streaming on http://IP_camera/video.mjpg, because it has limited number of connections I want to use VLC as stream server - take this video and stream it from my computer.

:sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=ffmpeg{mux=flv},dst=:8080/},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

I set up VLC as shown above and it streams, when I open another VLC to see stream from that server (not camera) it works fine (connected on http://myIP:8080), how can I see it in Firefox??

First I have installed mozilla plugin and tried simply to type in tab "http://myIP:8080", it didn't open stream

Than I put this code into html and only I get is black screen instead of stream

<embed type="application/x-vlc-plugin"
name="video1"
autoplay="no" loop="yes" width="400" height="300"
target="http://myIP:8080" />
<br />
<a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
<a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
<a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
<a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>

What am I doing wrong?

Thanks in advance, I'm out of ideas and my brain hurts

kakone
New Cone
New Cone
Posts: 6
Joined: 15 Dec 2009 15:06

Re: VLC 1.1.4 stream to firefox

Postby kakone » 31 Oct 2010 12:59

Hello,

Look at the documentation : http://wiki.videolan.org/Documentation:WebPlugin
You use the old syntax (VLC version up to 0.8.5).

For example, to play your video, you must now write : document.video1.playlist.play().
You can try this code :

Code: Select all

<embed type="application/x-vlc-plugin" name="video1" autoplay="no" loop="yes" width="400" height="300" src="http://myIP:8080" /> <br /> <a href="javascript:;" onclick='document.video1.playlist.play()'>Play video1</a>


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests