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

MediaPlayer/AudioClip skip data on seek/loop

    XMLWordPrintable

Details

    • b01
    • b03
    • x86_64
    • linux

    Description

      ADDITIONAL SYSTEM INFORMATION :
      Fedora Linux 6.2.15, PipeWire 0.3.70, Eclipse Temurin 20.0.1, javafx-media 20-ea+4 (also affects JFX 17), platform is using GSTMediaPlayer

      A DESCRIPTION OF THE PROBLEM :
      When using MediaPlayer and AudioClip to loop played tracks, or when seeking backwards, audio starts playing again farther from the requested starting point.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Use MediaPlayer/AudioClip to load an audio file (I've tried mp3 and wav)
      2. Either use setCycleCount to have the audio loop, register an endOnMedia listener to seek back to ZERO, optionally set startTime/endTime to edit loop settings
      3. Play the media/clip

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When looping, playback resumes from the start, or from the set point
      ACTUAL -
      When looping, playback resumes at ~500ms after start or the set point

      ---------- BEGIN SOURCE ----------
      <link>, also includes a test audio file. Use either "normal", "clip", "startstop", or "pause" as a program argument.
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: