Code Comments
Programming Forum and web based access to our favorite programming groups.
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.
Post Follow-up to this messageDado 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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.