public class Music extends BaseAudioEntity
mLeftVolume, mRightVolume| Modifier and Type | Method and Description |
|---|---|
protected MusicManager |
getAudioManager() |
android.media.MediaPlayer |
getMediaPlayer() |
boolean |
isPlaying() |
void |
onMasterVolumeChanged(float pMasterVolume) |
void |
pause() |
void |
play() |
void |
release() |
void |
resume() |
void |
seekTo(int pMilliseconds) |
void |
setLooping(boolean pLooping) |
void |
setOnCompletionListener(android.media.MediaPlayer.OnCompletionListener pOnCompletionListener) |
void |
setVolume(float pLeftVolume,
float pRightVolume) |
void |
stop() |
protected void |
throwOnReleased() |
assertNotReleased, getActualLeftVolume, getActualRightVolume, getLeftVolume, getMasterVolume, getRightVolume, getVolume, isReleased, setVolumepublic boolean isPlaying()
throws MusicReleasedException
MusicReleasedExceptionpublic android.media.MediaPlayer getMediaPlayer()
throws MusicReleasedException
MusicReleasedExceptionprotected MusicManager getAudioManager() throws MusicReleasedException
getAudioManager in class BaseAudioEntityMusicReleasedExceptionprotected void throwOnReleased()
throws MusicReleasedException
throwOnReleased in class BaseAudioEntityMusicReleasedExceptionpublic void play()
throws MusicReleasedException
play in interface IAudioEntityplay in class BaseAudioEntityMusicReleasedExceptionpublic void stop()
throws MusicReleasedException
stop in interface IAudioEntitystop in class BaseAudioEntityMusicReleasedExceptionpublic void resume()
throws MusicReleasedException
resume in interface IAudioEntityresume in class BaseAudioEntityMusicReleasedExceptionpublic void pause()
throws MusicReleasedException
pause in interface IAudioEntitypause in class BaseAudioEntityMusicReleasedExceptionpublic void setLooping(boolean pLooping)
throws MusicReleasedException
setLooping in interface IAudioEntitysetLooping in class BaseAudioEntityMusicReleasedExceptionpublic void setVolume(float pLeftVolume,
float pRightVolume)
throws MusicReleasedException
setVolume in interface IAudioEntitysetVolume in class BaseAudioEntityMusicReleasedExceptionpublic void onMasterVolumeChanged(float pMasterVolume)
throws MusicReleasedException
onMasterVolumeChanged in interface IAudioEntityonMasterVolumeChanged in class BaseAudioEntityMusicReleasedExceptionpublic void release()
throws MusicReleasedException
release in interface IAudioEntityrelease in class BaseAudioEntityMusicReleasedExceptionpublic void seekTo(int pMilliseconds)
throws MusicReleasedException
MusicReleasedExceptionpublic void setOnCompletionListener(android.media.MediaPlayer.OnCompletionListener pOnCompletionListener)
throws MusicReleasedException
MusicReleasedException