mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
framework/assets/js/media.js
This commit is contained in:
parent
945c0d95e6
commit
d20abc9aad
@ -44,19 +44,19 @@ MediaError.MEDIA_ERR_NONE_SUPPORTED = 4;
|
||||
*/
|
||||
|
||||
Media.prototype.play = function() {
|
||||
DroidGap.startPlayingAudio(this.src);
|
||||
GapAudio.startPlayingAudio(this.src);
|
||||
}
|
||||
|
||||
Media.prototype.stop = function() {
|
||||
DroidGap.stopPlayingAudio();
|
||||
GapAudio.stopPlayingAudio();
|
||||
}
|
||||
|
||||
Media.prototype.startRecord = function() {
|
||||
DroidGap.startRecordingAudio(this.src);
|
||||
GapAudio.startRecordingAudio(this.src);
|
||||
}
|
||||
|
||||
Media.prototype.stopRecordingAudio = function() {
|
||||
DroidGap.stopRecordingAudio();
|
||||
GapAudio.stopRecordingAudio();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user