Java Reference
In-Depth Information
Solution
You can use one or more of the media event handler methods. Shown in Table 16-3 are
all the possible media events that are raised to allow developers to attach
EventHandler s or Runnable s.
Table 16-3 . Media Events
The following code presents the “Paused” text the users, with the “Duration” hav-
ing a decimal of milliseconds. This text is overlaid on top of the video when the user
clicks the pause button (see Figure 16-4 ) .
 
 
 
Search WWH ::




Custom Search