You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i think i found an issue when playing audio file using javafx.scene.media.MediaPlayer. I am trying to build a "toy" media player from which the user can choose an audio file and then play it. The first playback is fine then if the user clicks on the "pause" button the audio stops, then if i resume the audio playback using mediaPlayer.play() the audio starts, it plays for about 100ms, then pauses for about another 100ms and then starts again playing normally.
I am on a linux system and i tried using an .mp3 file and a .wav file. Using the javafx gradle plugin i tried with OpenJavaFx version 17.02, 17.06 and 19. Am i maybe doing something wrong? The code that i am using is the following:
Hi, i think i found an issue when playing audio file using javafx.scene.media.MediaPlayer. I am trying to build a "toy" media player from which the user can choose an audio file and then play it. The first playback is fine then if the user clicks on the "pause" button the audio stops, then if i resume the audio playback using mediaPlayer.play() the audio starts, it plays for about 100ms, then pauses for about another 100ms and then starts again playing normally.
I am on a linux system and i tried using an .mp3 file and a .wav file. Using the javafx gradle plugin i tried with OpenJavaFx version 17.02, 17.06 and 19. Am i maybe doing something wrong? The code that i am using is the following:
The text was updated successfully, but these errors were encountered: