Skip to main content

How to see Videos with the Java-Video player offline?

3 replies [Last post]
theuserbl
Offline
Joined: 2004-05-04

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sargeras
Offline
Joined: 2008-12-20

If the video file at the current classpath, you can use:

def mediaUrl:String =java.lang.ClassLoader.getSystemResource("video.flv").toString();

to get the url;

or if the video file at c:\video.flv, you can use the "file:/c:/video.flv" locate it.

alexsch
Offline
Joined: 2007-07-12

If a video file at the same directory where is an fx file, you can use the __DIR__ variable:

def mediaUrl = "{__DIR__}video.flv";

aski
Offline
Joined: 2007-06-27

I may being able to answer your question. To check it, I need a test video file in flv format. Can you send me a link to download such a test video file (in flv format)?
Greeting from NRW
Asghar