我正在开发一个应用程序来流式传输来自 shoutcast 的音频。流式传输在我的计算机上运行良好,并且在使用 Android 配置进行调试时运行良好。 但是当我将它部署到 APK 文件并在三星 Galaxy S 上运行时,流式传输不起作用。
我的流式音频代码:
var urlRequest:URLRequest = new URLRequest("http://.../;");
var soundContext:SoundLoaderContext = new SoundLoaderContext(2000, true);
soundChannel = new SoundChannel();
sound = new Sound(urlRequest, soundContext);
soundChannel = sound.play();
我也试过 addEventListener(Event.COMPLETE),似乎我的应用程序在三星 Galaxy 上运行时没有到达那里。
最佳答案
请检查启用互联网的描述文件。
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffc.html
也请引用
http://cookbooks.adobe.com/post_Playing_mp3_files_on_Flex_Mobile-19106.html
关于android - 在 AIR 中流式传输音频时 Android 上没有声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9047900/