| java.lang.Object | ||
| ↳ | com.neomades.media.Player | |
| ↳ | com.neomades.media.AudioPlayer | |
An AudioPlayer provides playback of audio data from file,
resource or memory.
|
[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
| |||||||||||
Creates an audio player of audio data from resource.
| resId | the identifier of the sound resource. |
|---|
Creates an audio player of audio data from resource.
| audioAsset | the identifier of the sound resource. |
|---|
Creates an audio player of audio data from memory.
| stream | the data stream from memory |
|---|
Create an audio player of audio data from an URL (http, rtsp...)
| url | the URL identifying the sound to play |
|---|