-2

我正在使用corona sdk构建一个 AudioBook android 应用程序。我被困住了mp3 streaming

请帮我。

4

1 回答 1

0

参考这个网站试试这个 HTML5 代码:

<head> 
<title>Radio</title> 
<meta name="viewport" content="maximum-scale=1, minimum-scale=1, 
width=device-width,    user-scalable=no;"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<style type="text/css"> 
html { -webkit-text-size-adjust: none; }
    body {margin: 3px 3px 3px 3px;}
</style>
</head>
<body> 
<audio id="audio" controls autoplay src="http://oggvorbis.tb-stream.net:
80/technobase.ogg;"></audio>
<script type="text/javascript"> 
window.onload = function() {
var audioPlayer = document.getElementById("audio");
audioPlayer.load();
audioPlayer.play();
};
</script> 

</body>
于 2012-10-27T12:18:10.723 回答