I have a list of radio stations, mostly .mp3 and .ogg. I would like to have a player on a web page that could be controlled with JavaScript. Now I use jlgui, but it is somewhat limited.
我有一个广播电台列表,主要是.mp3和.ogg。我想在一个可以用JavaScript控制的网页上有一个播放器。现在我使用jlgui,但它有点受限。
Do you know of any alternative to jlgui? Preferably a java applet, but I can tolerate flash or even a system-default media player for a particular content-type.
你知道jlgui的其他选择吗?最好是一个java小程序,但我可以容忍flash或甚至是特定内容类型的系统默认媒体播放器。
3 个解决方案
#1
There are a thousand MP3 players for Flash, using the native streaming stuff. Unfortunately that copes generally poorly with streamed MP3 (either over Icecast HTTP, or even more so under SHOUTcast ICY). Generally the player has to reconnect to the stream every so often, causing a playback glitch, otherwise memory just fills with MP3 data.
Flash有一千个MP3播放器,使用本机流媒体。不幸的是,对于流式MP3(通过Icecast HTTP,或者在SHOUTcast ICY下更是如此),它通常很差。通常,播放器必须经常重新连接到流,导致播放故障,否则内存只会填充MP3数据。
OGG is harder. There's no native support, but in Flash 10 you can play any old samples you can decode yourself, so it's possible to implement your own OGG decoder. It needs a lot of CPU on the client though. See http://barelyfocused.net/blog/2008/10/03/flash-vorbis-player/ — I don't know of anyone having fixed this up into a single player that can do both MP3 and OGG from the same interface yet, but there's no reason it shouldn't be possible.
OGG更难。没有本机支持,但在Flash 10中,您可以播放任何可以自己解码的旧样本,因此可以实现自己的OGG解码器。它虽然在客户端需要大量的CPU。请参阅http://barelyfocused.net/blog/2008/10/03/flash-vorbis-player/ - 我不知道是否有人将其修复为可以从同一界面同时执行MP3和OGG的单个播放器但是,没有理由不应该这样。
#2
I found JPlayer which uses HTML5 if available, otherwise it falls back to Flash. Works almost as good as the JLgui
我发现JPlayer使用HTML5(如果可用),否则它会回退到Flash。工作几乎和JLgui一样好
#1
There are a thousand MP3 players for Flash, using the native streaming stuff. Unfortunately that copes generally poorly with streamed MP3 (either over Icecast HTTP, or even more so under SHOUTcast ICY). Generally the player has to reconnect to the stream every so often, causing a playback glitch, otherwise memory just fills with MP3 data.
Flash有一千个MP3播放器,使用本机流媒体。不幸的是,对于流式MP3(通过Icecast HTTP,或者在SHOUTcast ICY下更是如此),它通常很差。通常,播放器必须经常重新连接到流,导致播放故障,否则内存只会填充MP3数据。
OGG is harder. There's no native support, but in Flash 10 you can play any old samples you can decode yourself, so it's possible to implement your own OGG decoder. It needs a lot of CPU on the client though. See http://barelyfocused.net/blog/2008/10/03/flash-vorbis-player/ — I don't know of anyone having fixed this up into a single player that can do both MP3 and OGG from the same interface yet, but there's no reason it shouldn't be possible.
OGG更难。没有本机支持,但在Flash 10中,您可以播放任何可以自己解码的旧样本,因此可以实现自己的OGG解码器。它虽然在客户端需要大量的CPU。请参阅http://barelyfocused.net/blog/2008/10/03/flash-vorbis-player/ - 我不知道是否有人将其修复为可以从同一界面同时执行MP3和OGG的单个播放器但是,没有理由不应该这样。
#2
I found JPlayer which uses HTML5 if available, otherwise it falls back to Flash. Works almost as good as the JLgui
我发现JPlayer使用HTML5(如果可用),否则它会回退到Flash。工作几乎和JLgui一样好