I use this ExoPlayer demo for playing audio streaming.
I modified code for playing audio with notification.
for this I put Exoplayer code in service class, but pause method not working don't know what happens but setPlayWhenReady(false) not working in service. Check this modified source code