我只想从http://livestream.rfn.ru:8080/kulturafm/mp3_192kbps中读取一些音频流。我的代码是这样的
http = require('http')
options =
host: 'livestream.rfn.ru'
path: ':8080/kulturafm/mp3_192kbps'
callback = (res) ->
res.on 'data', (chunk) -> console.log String(chunk)
res.on 'end', -> console.log('No more data in response.')
http.request(options, callback).end()
输出是:
<html><head><title>Wowza Streaming Engine 4 Monthly Edition 4.4.0 build17748</title></head><body>Wowza Streaming Engine 4 Monthly Edition 4.4.0 build17748</body></html>
没有更多的响应数据。我不明白如何从 MP3 流中获取数据。