Code: Select all
function forceFullscreen(arValue)
{
var vlc = getVLC("vlc");
if( (vlc.input.state == 2 || vlc.input.state == 3) && vlc.input.hasVout )
{
vlc.video.fullscreen = true;
}
};
// partial extract from doGo
// play MRL
vlc.playlist.playItem(itemId);
// Initially force the display to be fullscreen
// As playItem() returns immediately, we need to delay
// going fullscreen until it's playing. The timeout
// is dependant on the hardware.
setTimeout("forceFullscreen()", 2000);
Hey Fabian Glad to see your got it somewhat working under Linux it is interesting that it works differently and doesn't allow linking to diff dir's and filenames with spaces when that works fine under windows.@ nin_nin,
thanks for your reply, it helped
Here some things I worked out for running it on a linux machine (mine is ubuntu hardy (server without GUI)):
1. Installation:
- Just put the DVDFlow-folder into the your normal http-server-webroot (i.e. /var/www for apache).
Don't put the stuff into the vlc-http folder or it will load the hole movie before starting to stream (bad idea
with a 90min movie...).
- enjoy the demo: http://<server>/DVDFlow/DVD Flow.htm
2. Configuration:
- Link your movie and image paths into the DVDFlow-folder (see below)
- Adjust your xml-config file.
3. Pitfalls:
- DVDFlow seems to have trouble with spaces in the paths and filenames to the movies and the movie-images. And
they have to be inside the DVDFlow-Folder (linking files or folders with 'ln -s' does work).
** If it doesn't find a movie, the somewhat misleading error message is:
"No suitable access module for <http-path from movie in the xml-file>" (!) **
Examples for storage paths:
/home/fabian/Filme/Super Movie.avi (won't work)
/home/fabian/Filme/Super_Movie.avi (won't work)
/var/www/DVDFlow/Filme/Super Movie.avi (won't work, either linked or moved from /home/fabian/)
/var/www/DVDFlow/Filme/Super_Movie.avi (should work, either linked or moved from /home/fabian/)
- In the xml-file don't put an "." infront of the movies path (like it is with ./artwork). It won't work.
Examples:
if the movie path is:
/var/www/DVDFlow/Filme/Super_Movie.avi
and the xml-file path is:
/var/www/DVDFlow/XML/Movies.xml
the xml-file entry is:
./Filme/Super Movie.avi (won't work)
./Filme/Super_Movie.avi (won't work)
Filme/Super_Movie.avi (should work)
Greets,
fabian
Hmm i never thought of using multiple files (altho i am gonna be working on it for TV Shows when i continue with this tho)NiN^_^NiN
Thanks for the source fla.
I have a another question.
When we select a movie we then click watch movie and we see the movie so far so good. But i was wondering if i want to stream a movie with more parts for example 3 or 4 and had the links for those parts into the xml are they going to be added to the vlc MRL playlist ? If not Do u have any idea how i could add more parts to a streaming movie without having to code new button like watch movie_part_1, watch movie_part_2, watch movie_part_3 and had them automaticly into a playlist?
Regards,
Aeli
Glad to see you worked it out coldplay nice jobSorted that too now. It required a delay after calling PlayItem() (which returns immediately) before calling vlc.video.fullscreen = true;
Code: Select all
function forceFullscreen(arValue) { var vlc = getVLC("vlc"); if( (vlc.input.state == 2 || vlc.input.state == 3) && vlc.input.hasVout ) { vlc.video.fullscreen = true; } }; // partial extract from doGo // play MRL vlc.playlist.playItem(itemId); // Initially force the display to be fullscreen // As playItem() returns immediately, we need to delay // going fullscreen until it's playing. The timeout // is dependant on the hardware. setTimeout("forceFullscreen()", 2000);
Users browsing this forum: No registered users and 3 guests