Click here to Skip to main content
15,909,747 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

1 solution

Have a look to
http://www.javaworld.com/javaworld/jw-04-1997/jw-04-jmf.html?page=1[^]
on the third page they say...
The java.media.Player interface extends from the Controller interface, which itself extends the Clock interface. The Clock interface specifies methods used for synchronization and timekeeping, while Controller adds variables and methods used to track state and state transitions

and on the 4th page...
Other advanced features are provided for in the Player API. Any player may act as a controller for one or more other players. This synchronization is achieved through the use of TimeBase objects, which function as clocks in JMF. Players can synchronize with one another using methods such as getTimeBase and setTimeBase.


So looking for Java.Media.Player clock gives some results that might help you.
http://java.sun.com/javame/reference/apis/jsr927/javax/media/Clock.html[^]
http://docs.oracle.com/cd/E17802_01/j2se/javase/technologies/desktop/media/jmf/2.1.1/apidocs/javax/media/bean/playerbean/MediaPlayer.html[^]
http://www.cs.vu.nl/~eliens/documents/java/white/jmf.html[^]

hope it helps
 
Share this answer
 
Comments
Sandeep Mewara 27-May-12 1:31am    
5!
Nelek 27-May-12 19:14pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900