JDK-8091696 : MediaPlayer doesn't play streamed mp3
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-04-18
  • Updated: 2018-09-06
  • Resolved: 2017-04-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
When I try to play "http://radio.sampo.ru/unost.mp3" MediaPlayer doesn't play it.

Here is its state:
status: HALTED, currentTime: 0.0 ms, totalDuration: null, error: MediaException: PLAYBACK_HALTED : Only limited content is supported by progressbuffer.
Comments
Please add this. It seems odd that I can save the stream to file then play it but not play the live stream itself. The "Requires Windows 7" part makes HLS unavailable for us, and writing to file and playing would make it choppy as it switches files. Media is a final class so I couldn't even customize that. I don't see the javafx.scene.media in the available source code for JavaFX 2.2 to change it myself.
20-02-2014

http://developer.apple.com/library/ios/#documentation/networkinginternet/conceptual/streamingmediaguide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html#//apple_ref/doc/uid/TP40008332-CH2-DontLinkElementID_29 If you want to be able to playback arbitrary mp3 live stream then we'll have to add such feature to Media component. If you have control over the content then for now I suggest to use HLS audio only streams. Basically this is an AAC encoded audio track wrapped in MpegTS container and segmented by some tools like Apple tools to produce live streaming on HTTP servers.
19-04-2013

How can I get it? Do you have an example?
19-04-2013

Just supply HLS URL to Media object, as you would do for rest of streams and it should work. Nothing special is needed.
18-04-2013

What's the API for it? How to use it?
18-04-2013

Yes, requires Windows 7, OS X or Linux.
18-04-2013

Is it part of JavaFX?
18-04-2013

HLS is HTTP Live Streaming.
18-04-2013

What is HLS?
18-04-2013

If it's a live stream then we don't support it. If should be converted to a feature request. For Live sources use HLS.
18-04-2013