Created
February 28, 2014 17:40
-
-
Save wayferer/9275734 to your computer and use it in GitHub Desktop.
phonegap file path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPhoneGapPath() { | |
var path = window.location.pathname; | |
path = path.substr( path, path.length - 10 ); | |
return 'file://' + path; | |
} | |
var snd = new Media( getPhoneGapPath() + 'test.wav' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment