0

我正在尝试在 iPhone 的 phonegap 应用程序中创建播放列表。我对此一无所知,我对这个问题完全陌生,我没有得到任何东西,有人可以帮我解决这个问题吗?

4

1 回答 1

1

这可能会帮助你

使用 PhoneGap 媒体 API 和 jQuery Mobile UI 框架

这是代码:

<!DOCTYPE HTML>
<html>
  <head>
    <meta name="viewport" content="width=screen.width; user-scalable=no" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Audio Player</title>
    <!-- NOTE: The following 4 lines are inserted by the project wizard -->
      <link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.0.css" type="text/css">
      <script type="text/javascript" src="jquery.mobile/jquery-1.6.4.min"></script>
      <script type="text/javascript" src="jquery.mobile/jquery.mobile-1.0.js"></script>
      <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
</head>
<body>

<div data-role="page" data-theme="a" id="page-home">
    <div data-role="header" data-nobackbtn="true" data-theme="e">
    <h1>Audio Player</h1>
    </div> <!-- /header -->

    <div data-role="content" id="content-manual" data-theme="a">

        <div data-role="button" id="playaudio" data-theme="e">Play</div>
        <div data-role="button" id="pauseaudio" data-theme="e">Pause</div>
        <div data-role="button" id="stopaudio" data-theme="e">Stop</div>    

        <div class="ui-grid-a">
            <div class="ui-block-a"> Current: <span id="audio_position">0 sec</span></div>
            <div class="ui-block-b">Total: <span id=media_dur>0</span> sec</div>
        </div><!-- /grid-a -->

    </div>  <!-- /content-manual -->
</div>  <!-- /page -->
</body>
</html>
于 2012-07-03T05:04:30.777 回答