Back to project page EnklawaPlayer.
The source code is released under:
GNU General Public License
If you think the Android project EnklawaPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package macbury.pod.managers.player.sources; /*from w ww . j a v a 2 s . c o m*/ import android.net.Uri; import macbury.pod.managers.player.PlaybackStatus; /** * Created by macbury on 25.09.14. */ public abstract class AbstractMediaSource { protected PlaybackStatus status = PlaybackStatus.Pending; public abstract String getTitle(); public abstract String getSummary(); public abstract Uri getMediaUri(); public abstract Uri getPreviewArtUri(); public abstract boolean isLiveStream(); public abstract void onPlay(); public abstract void onPause(); public abstract void onFinishPlayback(); public abstract int getPosition(); public abstract void setPosition(int duration); public abstract int getDuration(); public PlaybackStatus getStatus() { return status; } public void setStatus(PlaybackStatus status) { this.status = status; } }