Example usage for org.apache.cordova AudioPlayer stopPlaying

List of usage examples for org.apache.cordova AudioPlayer stopPlaying

Introduction

In this page you can find the example usage for org.apache.cordova AudioPlayer stopPlaying.

Prototype

public void stopPlaying() 

Source Link

Document

Stop playing the audio file.

Usage

From source file:com.candygram.media.AudioHandler.java

License:Apache License

/**
 * Stop playing the audio file.//  w ww .j  av a  2 s . c  o  m
 * @param id            The id of the audio player
 */
public void stopPlayingAudio(String id) {
    AudioPlayer audio = this.players.get(id);
    if (audio != null) {
        audio.stopPlaying();
    }
}