Building HTML pages

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
mweissen
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2009 16:02

Building HTML pages

Postby mweissen » 13 Jul 2009 19:24

I have an embedded Linux-server with two 1.5 TB hard disk drives, which works as fileserver. Its address is 192.168.0.32 and its drive letter is Z:. It is not possible to install a vlc streaming server. There are several movies on this hard disk, each movie directory has is own VIDEO_TS subdirectory.
E.g. there a subdirectory \\192.168.0.32\public disk\DVDS\MOVIE\VIDEO_TS

I have started VLC and both of the following commands work very fine:
(1) Media -> Open Location from clipboard -> \\192.168.0.32\public disk\DVDS\MOVIE
(2) Media -> Open Location from clipboard -> Z:\public\DVDS\MOVIE

Now I wanted to build a website to choose these movies. There should be a link like

Code: Select all

<a href="????\\192.168.0.32\public disk\DVDS\MOVIE">Movie</a>
to start the vlc plugin of firefox. But it seems to be a little bit more complicated.

I have found "Building HTML pages..." on http://wiki.videolan.org/Documentation:WebPlugin
Now I have modified Example 1 and it looks like

Code: Select all

<html> <head><title>Demo of VLC mozilla plugin</title></head> <body> <h1>Demo of VLC mozilla plugin - Example 1</h1> <embed type="application/x-vlc-plugin" name="video1" autoplay="no" loop="yes" width="400" height="300" target="http://192.168.0.32/public%20disk/DVDS/MOVIE/VIDEO_TS/VIDEO_TS.VOB" /> <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> </body> </html>
The first thing is an error message...

Code: Select all

Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Programme\Mozilla Firefox\firefox.exe R6034 An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information.
... and then the screen shows only "Waiting for video".
What shall I do?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Building HTML pages

Postby Jean-Baptiste Kempf » 13 Jul 2009 19:55

OK, you have another plugin conflicting with VLC, probably forcing a newer msvcrt. try deactivating other plugins in FFX
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mweissen
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2009 16:02

Re: Building HTML pages

Postby mweissen » 13 Jul 2009 22:43

Thank you - I have deactivated all other plugins and the error message has gone.
Now I have converted the example for vlc 1.0.0 and the video starts:

Code: Select all

<html> <head><title>Demo of VLC mozilla plugin</title></head> <body> <h1>Demo of VLC mozilla plugin - Example 1</h1> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="640" height="480" id="vlc"> </embed> <script language="Javascript"> <!-- var vlc=document.getElementById("vlc"); var id=vlc.playlist.add("ftp://192.168.0.32/public disk/DVDS/MOVIE/VIDEO_TS/VIDEO_TS.VOB"); vlc.playlist.playItem(id); </script> <br /> <a href="javascript:;" onclick='vlc.playlist.play()'>Play video1</a> <a href="javascript:;" onclick='vlc.playlist.togglePause()'>Pause video1</a> <a href="javascript:;" onclick='vlc.playlist.stop()'>Stop video1</a> <a href="javascript:;" onclick='vlc.video.toggleFullscreen()'>Fullscreen</a> </body> </html>
But I have no access to the disk menu. Maybe the media resource locator (MRL) is wrong? I have tried...
...and some other combinations, but without success.
Any ideas?

Zinis
New Cone
New Cone
Posts: 3
Joined: 04 Jul 2009 03:08

Re: Building HTML pages

Postby Zinis » 13 Jul 2009 23:07

If I am understanding you correctly you want to access movies in video_ts format from your local machine without using a webserver. Going on that assumption I'll toss an idea out there for you

Theres an app in this same sub forum called DVD Show. It integrates a Cover Show similar flash file that loads an .xml file with video cover pictures and links to the movie files/folders and plays them. I find this app works very well. I have used it with movies in the same format you have described. It creates a nice interface to select and play movies in without re-inventing the wheel.

There are a few drawbacks though.

It seems to only handle just so many titles at once and then it randomly doesnt display cover images. I havent investigated to far as to why. I assume a memory issue with flash. Regardless I made a work around. I use a perl script to read in all my titles in a folder and then alphabetize them and then break them up in blocks like A-J, K-R and S-Z xml files. I then added some html buttons on the html interface for the flash player to navigate between different xml files. For example the default page loads movies A thru J and the back button reloads the flash player with movies S though Z and the forward button reloads the flash player with movies K through R. Hopefully you get the idea

Flash player security - flash does not like to load files from the local machine due to security issues. This can be over-rode by changing global security setting on the flash player.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Building HTML pages

Postby Jean-Baptiste Kempf » 14 Jul 2009 00:09

Try dvdsimple:///
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mweissen
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2009 16:02

Re: Building HTML pages

Postby mweissen » 14 Jul 2009 08:33

The whole project is a little bit more complicated:
  • There is a Linksys File Storage System (NAS200) with two 1.5 GB HDs (called Z: or 192.168.0.32), which stores video files in video_ts format. It could be accessed by ftp.
    There are two other files store systems, but they are not so important. Maybe they could be integrated later.
    Another computer is a webserver and has a mysql database. This computer should store my website.
I want to build a website to choose a movie. A click on its title should start to play using vlc. The last program (example for vlc 1.0.0 ) works very file, but without the menus.

During the last hours I have tried some MRLs and there are some of the results:
  • ftp://192.168.0.32/public disk/DVDS/MOVIE/VIDEO_TS/VIDEO_TS.VOB: works fine, but without menues
    ftp://media02/PUBLIC DISK/DVDS/MOVIE/VIDEO_TS/VIDEO_TS.VOB: the same...
    Z:/public/DVDS/MOVIE/VIDEO_TS/VIDEO_TS.IFO: does not work at all
    Z:/public/DVDS/MOVIE: very good: the whole dvd, with menues. but it works only with a mapped network drive
    ftp://192.168.0.32/public disk/MOVIE.ISO: no menu, no sound
    ftp://192.168.0.32/PUBLIC DISK/DVDS/MOVIE/VIDEO_TS/VIDEO_TS.IFO: should be the solution, because the ifo-file holds the menu - but it does not work!
It seems that vlc does not allow ftp to transfer ifo-files nor allow access to the whole VIDEO_TS directory?

Two solutions:

(1) To use mapped network drives
(2) To allow the transfer of ifo-files using ftp.

About the "DVD Show": sorry, I did not find it.

About "dvdsimple:///": I have read that it could show DVDs without menus - but I want to have them. Another posting tells: "DVDsimple is broken. So you have to use menus."

stargazer
New Cone
New Cone
Posts: 1
Joined: 14 Aug 2009 12:51

Re: Building HTML pages

Postby stargazer » 14 Aug 2009 12:56

Hi i am trying to build a webpage that plays a video from a http stream, I have tried your code but all I get is the 'waiting for video' message disapear and then a black screen. I am using my IP address and port number as the MRL. Can you suggest anything? thanks.

<html>
<head><title>Demo of VLC mozilla plugin</title></head>
<body>
<h1>Demo of VLC mozilla plugin - Example 1</h1>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
version="VideoLAN.VLCPlugin.2" width="640" height="480" id="vlc">
</embed>

<script language="Javascript">
<!--
var vlc=document.getElementById("vlc");
var id=vlc.playlist.add("http://192.168.0.32:8080");
vlc.playlist.playItem(id);
</script>

<br />
<a href="javascript:;" onclick='vlc.playlist.play()'>Play video1</a>
<a href="javascript:;" onclick='vlc.playlist.togglePause()'>Pause video1</a>
<a href="javascript:;" onclick='vlc.playlist.stop()'>Stop video1</a>
<a href="javascript:;" onclick='vlc.video.toggleFullscreen()'>Fullscreen</a>
</body>
</html>

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Building HTML pages

Postby thannoy » 27 Nov 2009 11:48

@stargazer: It is fixed I guess, no? Maybe you can share the answer you found. If it is not fixed, you can try ensuring your test page is the only one listening the http stream.

benicemi
New Cone
New Cone
Posts: 1
Joined: 28 Nov 2009 04:51

Re: Building HTML pages

Postby benicemi » 28 Nov 2009 14:42

Maybe you could try to share the information you have found about building HTML pages on Linux-server… it could really be great information and a good resource for everyone. I guess I still need to search some information about a thing.

pamelaluck
New Cone
New Cone
Posts: 2
Joined: 12 Jan 2010 04:56

Re: Building HTML pages

Postby pamelaluck » 12 Jan 2010 12:47

Hello,
The easiest way to create HTML documents is to start with an existing Writer document. You can view it as it will appear on a web page by selecting Online Layout from the View menu or by clicking on its toolbar button.Links can be inserted and modified using the hyperlink editor. Display the editor by clicking on its toolbar button or clicking Hyperlink on the Insert menu. From the Hyperlink window, you can choose the type of link, as well as specify the link's address, text and how it should be displayed.To edit an existing link or turn existing text into a link, simply highlight it before opening the Hyperlink window. You have to click Apply to insert the link into your document before closing the window.
Waiting for Valentine day

SawyerX
Blank Cone
Blank Cone
Posts: 35
Joined: 23 Nov 2008 22:03

Re: Building HTML pages

Postby SawyerX » 26 Feb 2010 17:04

I recommend using video php portals like Jinzora, Subsonic or even Orb 2.0. They are all designed for video streaming over http and the first 2 have a m3u list support but support only the standard formats like .avi, wma, mp4, flash, mov... that are stremable over http. The third one does stream everything including DVDs. So you dont need to build anything.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests