MediaTimeEventControl

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.davic.media
Interface MediaTimeEventControl

All Superinterfaces:
  Control

    public interface MediaTimeEventControl

extends Control

This interface describes methods for the application to associate events with the media time of the current stream.

Method Summary
`void` | `notifyWhen(MediaTimeEventListener i, long mediaTime)` This method allows the application to associate an event with the specified media time.
`void` | `notifyWhen(MediaTimeEventListener i, long mediaTime, int id)` This method allows the application to associate an event with the specified media time.

Methods inherited from interface javax.media.Control
`getControlComponent`

Method Detail

### notifyWhen

    void notifyWhen(MediaTimeEventListener i,
                    long mediaTime,
                    int id)

  This method allows the application to associate an event with the specified media time. The application can supply an identification that will be associated with this event.

  Parameters:
    `i` - the listener to notify when the event happens
    `mediaTime` - the media time which will be associated with the event
    `id` - an identification for application use

### notifyWhen

    void notifyWhen(MediaTimeEventListener i,
                    long mediaTime)

  This method allows the application to associate an event with the specified media time. The identification that will be associated with this event always equals 0.

  Parameters:
    `i` - the listener to notify when the event happens
    `mediaTime` - the media time which will be associated with the event

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD