Hello to yushalee10 and all others.
I shall try your source code next weekend (cannot realy "work" on week days)
I made some searches this week end, and found how to simply use flowplayer.
As I do not know anything about java, it will be hard to apply it to the vlc index.html file.
First I dowloaded jquery and flowplayer that are compatible together.
Second, I modified the html file to make it work with local files.
I named it file:///usr/share/vlc/lua/http/flow1.html
Code: Select all
<!doctype html>
<head>
<!-- player skin -->
<link rel="stylesheet" type="text/css" href="skin/minimalist.css" />
<!-- site specific styling -->
<style>
body { font: 12px "Myriad Pro", "Lucida Grande", sans-serif; text-align: center; padding-top: 5%; }
.flowplayer { width: 80%; }
</style>
<!-- flowplayer depends on jQuery 1.7.1+ (for now) -->
<script src="js/jquery-1.7.1.min.js"></script>
<!-- include flowplayer -->
<script src="bin/flowplayer.js"></script>
</head>
<body>
<!-- the player -->
<div class="flowplayer" data-swf="bin/flowplayer.swf" data-ratio="0.417">
<video>
<source type="video/webm" src="http://stream.flowplayer.org/bauhaus/624x260.webm"/>
</video>
</div>
Third, I replaced the file with a local .webm file.
It sill works.
This means flowplayer is Ok on my computer.
I suppose that:
web browsers have evolved
flowplayer too, giving incompatible files with jquery through the internet
as a result, flowplayer included with Vlc Twoflower 2.0.5 does not show your stream anymore (not sure at all this 3rd point is true)
This is probably because I do not know if I can select a file with the web browser, paly it, and vlc automatically streams it on the 8081 port to the flowplayer software included in it's web page.
How do I stream videos from my webcam: using first http and then rtsp.
I have tried ports 8080 and 8081 which conflicts with vlc itself - other port numbers do work;
I use the 8554 default port for rtsp.
Opening the stream via a web browser (firefox 19.0.2), it opens Vlc.
A file does the same - webcam.m3u
Code: Select all
rtsp://192.168.1.19:8554/webcam.sdp
I open it with vlc.
Of course, I shall post here all my findings - if any !
I have written two "how to" for beginers, but it's in french. There are plenty, so what for ?
Just because I had to read many different pages on the internet to succeed streaming and using the vlc web server option.
One of it is a web page about vlc, smartphones using android and Ipwebcam.
The second one is: how to stream for beginners
I do not know if I am allowed to give the link here - and again, it's in french...