is there any way to read the stream from an android service

indeed when using WOWZPlayerView I had “invalid surface” error, is there any way like android has a mediaplayer that can be used without a user interface only as a service ?