Skip to content

Commit

Permalink
Testing large audio file
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Mar 13, 2014
1 parent 8ec07f7 commit e124509
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
</gap:plugin>


<gap:plugin name="com.rjfun.cordova.plugin.lowlatencyaudio" />

<!-- PhoneGap plugins -->
<!-- PhoneGap plugins -->
<gap:plugin name="org.apache.cordova.dialogs" />
<gap:plugin name="org.apache.cordova.media" />
<gap:plugin name="org.apache.cordova.inappbrowser" />


<preference name="phonegap-version"/>
<preference name="phonegap-version"/>
<preference name="orientation" value="portrait" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="false" />
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ <h1>Plugins Demo</h1>
</p>
<p>
<button onclick="changeWebViewColor()">Make webview background green (iOS)</button>
<button onclick="testAudioPlayer()">Test Cordova audio player</button>
<button onclick="testAudioPlayer(false)">Test Cordova audio player, 6 MB</button>
<button onclick="testAudioPlayer(true)">Test Cordova audio player, 73 MB</button>
<button onclick="window.open('http://www.x-services.nl/mindfullness-test-large.mp3', '_system')">Test native audio player, 73 MB</button>
<input id="test" name="test" type="text" width="10" placeholder="test"/>
</p>
<p>
Expand Down
4 changes: 2 additions & 2 deletions js/cordova-media-plugin-demo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

function testAudioPlayer() {
function testAudioPlayer(large) {

function onSuccess() {
alert("ok");
Expand All @@ -16,7 +16,7 @@ function testAudioPlayer() {
}

var my_media = new Media(
"http://www.x-services.nl/mindfullness-test.mp3",
large? "http://www.x-services.nl/mindfullness-test-large.mp3" : "http://www.x-services.nl/mindfullness-test.mp3",
onSuccess,
onError,
onMediaStatus);
Expand Down

0 comments on commit e124509

Please sign in to comment.