Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8090693

Make VideoRendererListener API partially public

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • javafx
    • None

      More fine control is need on when and what video frame is currently rendered.

      It is frequently possible that the media pipeline timer (which is usually bound to the audio stream) has a time lag with video stream timer. For example when the media is played back on a high rate (e.g. 4x), but the video stream decoder has insufficient performance to process the stream on such rate and it has no QoS capabilities to skip the frames and keep synchronized (such situation is described in the issue https://javafx-jira.kenai.com/browse/RT-30299). In such cases we need to provide information on the current video stream playback time to give a user more fine control over playback in this situation (e.g. he may reduce the rate to keep streams synchronous or make a seek() when the lag is too large).

      We need to expose
      com.sun.media.jfxmedia.events.VideoRendererListener
      com.sun.media.jfxmedia.events.NewFrameEvent
      and part of the com.sun.media.jfxmedia.control.VideoDataBuffer interface to the public API

      we also need to add methods
      javafx.scene.media.MediaPlayer.add/removeVideoRendererListener()

            Unassigned Unassigned
            anashaty Anton Nashatyrev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: