Media player maturity (on Mac)

Joe McGlynn joe.mcglynn at oracle.com
Mon Mar 9 17:01:14 UTC 2015


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.
 <http://www.oracle.com/commitment>

 <http://www.oracle.com/commitment>
> On Mar 9, 2015, at 9:31 AM, Robert Krüger <krueger at lesspain.de> wrote:
> 
> Hi,
> 
> 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
> difference.
> 
> 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



More information about the openjfx-dev mailing list