Media player maturity (on Mac)
swpalmer at gmail.com
Tue Mar 10 00:44:15 UTC 2015
As you have discovered, the JavaFX media support isn't quite where it needs to be. That said, the JavaFX team is putting in the effort to make JavaFX better with every release. Please do file that bug report!
(This kind of issue is sure to get addressed faster than my request to make the media system extensible RT-2684)
> On Mar 9, 2015, at 6:49 PM, Robert Krüger <krueger at lesspain.de> wrote:
> Doesn't seem to make a difference if I use u25 or u40.
> I can't get any sound file to loop using setCycleCount(INDEFINITE) on u25
> or u40 either.
> I will probably submit bug reports for this later.
>> On Mon, Mar 9, 2015 at 6:01 PM, Joe McGlynn <joe.mcglynn at oracle.com> wrote:
>> The FX/Media stack is supported, and the media stack on Mac was *just*
>> updated in 8u40 to use the newer AVFoundation stack (10.8+ only) instead of
>> QtKit. It’s certainly possible there are bugs, please file a bug report
>> with a reproducer case so we can fix them.
>> On Mar 9, 2015, at 9:31 AM, Robert Krüger <krueger at lesspain.de> wrote:
>> anyone doing serious work with the media player on the Mac? I am
>> experimenting and so far I am not getting the impression, this is really
>> something very solid.
>> The first Audio-Sample I tried playing plays fine the first time but when I
>> play it for a second time by either issuing stop() followed by play() or
>> seek(new Duration(0) and then play, the playback cuts off a few samples at
>> the start (does not happen when I instantiate a new Player for each time I
>> want to play it, which does not feel right). You need a suitable audio file
>> like a drum beat that starts immediately in the file to notice the
>> If one was to implement simple sample-player-like functionality (not a full
>> fledged music sequencer but something that allows timed playback to arrange
>> sounds on a timeline a bit) in JavaFX, should Mediaplayer be the tool to
>> use or do I have to use native APIs? Last time I checked JavaSound, it was
>> still an abandoned toy usable only for educational purposes but not for
>> anything else. Don't know if that has changed or if this is even the Audio
>> strategy for JFX.
>> Would be great if someone could share experience/opinions in this area.
>> Thanks in advance,
> Robert Krüger
> Managing Partner
> Lesspain GmbH & Co. KG
More information about the openjfx-dev