PHP / HTML5实时音频流

问题描述 投票:-3回答:2

我想流式传输实时音频(一个人正在对着麦克风讲话),然后音频必须通过网络流式传输才能在其他用户的浏览器上播放。我已经使用PHP,HTML,JavaScript,jQuery或AJAX。

php sockets audio-streaming audio-recording
2个回答
0
投票

我知道一种快速的方法:

var radioStream:String='http://stream.fm1079.co.uk:8000/stream';//my local radio station

function openStream(stream){
var s:Sound = new Sound();
var req:URLRequest = new URLRequest(stream);
var context:SoundLoaderContext = new SoundLoaderContext(500, true);
s.load(req, context);
s.play();
}//end of function

openStream(radioStream);

这将流式传输任何流URL。


0
投票

Flash死了,我需要一个使用html的php方法而不是Flash的帮助。

© www.soinside.com 2019 - 2024. All rights reserved.