Java Audio Streaming - FireFox中的Mp3音频文件无法播放

时间:2021-07-11 18:56:21

I recently created a Java program to stream MP3 audio using a servletOutputStream to the browser. I tested it on Firefox, chrome & IE, and it worked fine until I updated Firefox to the newest version (15.0.1). At first I thought this was because this new version of FireFox included the new version of Flash but I checked Chrome and IE and they were both using the latest version of Flash as well. Does anyone know why the newest version of Firefox would cause audio streaming to stop working? No error is thrown, it just wont play. Thanks for any help in advance!

我最近创建了一个Java程序,使用servletOutputStream将MP3音频流式传输到浏览器。我在Firefox,Chrome和IE上进行了测试,它运行良好,直到我将Firefox更新到最新版本(15.0.1)。起初我以为这是因为这个新版本的FireFox包含了新版本的Flash,但我检查了Chrome和IE,他们也使用了最新版本的Flash。有谁知道为什么最新版本的Firefox会导致音频流停止工作?没有错误,它只是不会玩。在此先感谢您的帮助!

1 个解决方案

#1


0  

We're having the samt issue with a music player that used to both load and play mp3-files flawlessly until upgrading the Flash player from 11.2.x to 11.4.x.

在将Flash播放器从11.2.x升级到11.4.x之前,我们遇到了一个音乐播放器的问题,该播放器过去一直都可以完美地加载和播放mp3文件。

This currently only affects Firefox since both IE and Google Chrome still seems to be using previous versions of the Flash player (11.3.x and 11.2.x respectively).

目前这只影响Firefox,因为IE和谷歌Chrome似乎仍然使用以前版本的Flash播放器(分别为11.3.x和11.2.x)。

We're loading the music using two simple lines of code

我们使用两行简单的代码加载音乐

var player:Sound = new Sound();
player.loadSound(filepath, true);

I can see that file gets loaded on the progressbar but it just won't start playing.

我可以看到该文件被加载到进度条上,但它不会开始播放。

This of course does not help you solve your problem, but hopefully the additional info is importance to anyone else who is more of an Flash expert.

这当然不能帮助您解决问题,但希望其他信息对于更多Flash专家来说非常重要。

#1


0  

We're having the samt issue with a music player that used to both load and play mp3-files flawlessly until upgrading the Flash player from 11.2.x to 11.4.x.

在将Flash播放器从11.2.x升级到11.4.x之前,我们遇到了一个音乐播放器的问题,该播放器过去一直都可以完美地加载和播放mp3文件。

This currently only affects Firefox since both IE and Google Chrome still seems to be using previous versions of the Flash player (11.3.x and 11.2.x respectively).

目前这只影响Firefox,因为IE和谷歌Chrome似乎仍然使用以前版本的Flash播放器(分别为11.3.x和11.2.x)。

We're loading the music using two simple lines of code

我们使用两行简单的代码加载音乐

var player:Sound = new Sound();
player.loadSound(filepath, true);

I can see that file gets loaded on the progressbar but it just won't start playing.

我可以看到该文件被加载到进度条上,但它不会开始播放。

This of course does not help you solve your problem, but hopefully the additional info is importance to anyone else who is more of an Flash expert.

这当然不能帮助您解决问题,但希望其他信息对于更多Flash专家来说非常重要。