public final class

AudioPlayer

extends Player
java.lang.Object
   ↳ com.neomades.media.Player
     ↳ com.neomades.media.AudioPlayer

Class Overview

An AudioPlayer provides playback of audio data from file, resource or memory.

See Also

Summary

[Expand]
Inherited Constants
From class com.neomades.media.Player
Public Constructors
AudioPlayer(int resId, String contentType)
Creates an audio player of audio data from resource.
AudioPlayer(Sound audioAsset, String contentType)
Creates an audio player of audio data from resource.
AudioPlayer(InputStream stream, String contentType)
Creates an audio player of audio data from memory.
AudioPlayer(String url)
Create an audio player of audio data from an URL (http, rtsp...)
[Expand]
Inherited Methods
From class com.neomades.media.Player
From class java.lang.Object

Public Constructors

public AudioPlayer (int resId, String contentType)

Creates an audio player of audio data from resource.

Parameters
resId the identifier of the sound resource.

public AudioPlayer (Sound audioAsset, String contentType)

Creates an audio player of audio data from resource.

Parameters
audioAsset the identifier of the sound resource.

public AudioPlayer (InputStream stream, String contentType)

Creates an audio player of audio data from memory.

Parameters
stream the data stream from memory

public AudioPlayer (String url)

Create an audio player of audio data from an URL (http, rtsp...)

Parameters
url the URL identifying the sound to play