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

Issue with play/pause control on OnEndOfMedia of Media file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u21
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      MAC OSX, Windows-7 32/64 bit, XP 32 bit

      Description

      Hi,

      JavaFx- 2.2.21-b31
      Java- 1.7.0_21


      I am using JavaFx 2.2.21-b31 and facing problem with Play/Pause control.
      You can use the Demo Application from case no https://javafx-jira.kenai.com/browse/RT-27663,As I do not have authority in my JIRA account to attach any file.

      Here is the scenario

      I start playing Media file in MediaPlayer and when it reaches at the End of Media I called stop() method on the setOnEndOfMedia() method to restart the media file from the Start-Position when user click play() again, here is the code which I used

      mediaPlayer.setOnEndOfMedia(new Runnable() {

                      @Override
                      public void run() {
                              mediaPlayer.stop();
                      }
                  });

      In the previous version of JavaFx it do not have any issue and the Media file goes to the start position, But with this version of JavaFx (2.2.21-b31) I found following issues

      1. It reaches to the start but on the call of Play() it does not play the Media file but setOnEndOfMedia() being called automatically again.
      2. On 2-4 hit of Play() button some time it start playing and some-time not.

      I feel Some problem with stop() method or EndOfMedia behavior,



      Thanks


        Attachments

          Activity

            People

            Assignee:
            mcherkas Mikhail Cherkasov (Inactive)
            Reporter:
            rahuljfx Rahul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: