The moose likes Java in General and the fly likes player.setMediaTime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "player.setMediaTime" Watch "player.setMediaTime" New topic


Carlos Botero

Joined: May 22, 2012
Posts: 1
How to code in Java (with Java Media Framework) when the player reaches a certain time playing a video clip (for example, reaching 3.124 minutes in reproduction time), it generates an event?

Also, does this code moves the reproduction time of a video clip to 5 minutes? If not, what does it do? (I cannot make it work in my code, and I'm not understanding that time format):
player.setMediaTime(new Time(300*1000000));
I agree. Here's the link:
subject: player.setMediaTime
It's not a secret anymore!