This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Christoph Ehret
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I found the problem... I had to add file:/// to the medialocator , i.e

Chris
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic