Menu

Java - player.setRate doesn't work

user
2007-11-30
2013-05-09
  • Nobody/Anonymous

    Hello, I think this was asked about 3 years ago. The setRate method on a player doesn't appear to work, it always keeps it at 1.0f whatever the media. I want to set playback speed. Where would I start looking if I wanted to implement this?

    Thanks.

    Simon

     
    • Nobody/Anonymous

      I've made some progress and discovered that replacing the FOBS supplied jmf.jar with the JMF2.1.1e supplied jmf.jar, allows setRate() to work. The problem lies within jmf.jar...

       
      • Nobody/Anonymous

        Hi, I just tried changing the FOBS jmf.jar with the jmf.jar from Sun (the cross-platform Java version, not the performance pack version).

        However, setRate doesn't seem to work, and getRate always returns 1.0f.

        I am using a Processor rather than a Player, and wonder if that as anything to do with it? They both extend from Clock, so it should work fine. Anyhow, if you have any advice I'd appreciate it!

        Thanks, sj

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.