aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Impossible to find a Player with JMF ==> NoPlayerException. Why ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Impossible to find a Player with JMF ==> NoPlayerException. Why ?" Watch "Impossible to find a Player with JMF ==> NoPlayerException. Why ?" New topic
Author

Impossible to find a Player with JMF ==> NoPlayerException. Why ?

Christoph Ehret
Greenhorn

Joined: Dec 30, 2002
Posts: 12
Hello,
It is actually the first time I am using the JMF API . It seems quite cool to use, but each time I try to play a video (.mov or .avi) , I have the javax.media.NoPlayerException ... But I cannot understand why !! My code seems ok, but...

As input String I give the Absolute path to the movie I want to play, for example /Users/einbert/Desktop/SMMWriter/Transcript/010403_14_40.mov . But each time I have the following error message : javax.media.NoPlayerException: Cannot find a Player for :/Users/einbert/Desktop/SMMWriter/Transcript/010403_14_40.mov . I also tried to open a movie in the Transcript folder that does not exist, but it also throws the same exception (of course with another movie name), instead of a IOException !! Where is the problem ?
Thanks a lot.
Chris
Christoph Ehret
Greenhorn

Joined: Dec 30, 2002
Posts: 12
Ok, I found the problem... I had to add file:/// to the medialocator , i.e

Chris
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Impossible to find a Player with JMF ==> NoPlayerException. Why ?