For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2005 > JMF and video from jar file?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JMF and video from jar file?
Dado

2005-04-27, 3:59 am



I tried to play video from the jar file on the next ways:

1.
java.net.URL url = MyClass.getClass().getResource("movie/x.avi");

player = Manager.createPlayer(url);

....

2.
java.net.URL url = MyClass.getClass().getResource("movie/x.avi");

URLDataSource ds = new URLDataSource (url);
ds.connect();

player = Manager.createPlayer(ds);

and got javax.media.NoDataSourceException


How to play small avi movie from the java?

Please help.

p.s.
the path and the file s checked.

Dado

2005-04-28, 8:58 am

Dado wrote:

>
>
> I tried to play video from the jar file on the next ways:
>
> 1.
> java.net.URL url = MyClass.getClass().getResource("movie/x.avi");
>
> player = Manager.createPlayer(url);
>
> ...
>
> 2.
> java.net.URL url = MyClass.getClass().getResource("movie/x.avi");
>
> URLDataSource ds = new URLDataSource (url);
> ds.connect();
>
> player = Manager.createPlayer(ds);
>
> and got javax.media.NoDataSourceException
>
>
> How to play small avi movie from the java?
>
> Please help.
>
> p.s.
> the path and the file s checked.


seems to no one play video from the jar file.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com