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

Public API method to fetch VideoDataBuffer from a MediaPlayer video

XMLWordPrintable

    • x86
    • os_x

      A DESCRIPTION OF THE REQUEST :
      Obtaining a single frame of video from a MediaPlayer as a VideoDataBuffer is currently available via MediaPlayer.impl_getLatestFrame() but this is deprecated in JDK8 and removed in JDK9.


      JUSTIFICATION :
      It would be very useful for realtime video processing in JavaFX to have a public API method for fetching a single decoded frame of video for processing.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Making the existing deprecated functionality part of a supported public API would suffice but ideally the decoded video frame would be made available as a WriteableImage / PixelReader.

      CUSTOMER SUBMITTED WORKAROUND :
      Once this functionality is removed the only way to obtain a frame of video will be via the JavaFX Scene screenshot mechanism which cannot keep up with full frame rate high resolution video.

            almatvee Alexander Matveev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: