Android Question ExoPlayer shoutcast stream

drgottjr

Expert
Licensed User
Longtime User
the link you posted tells you exactly what to do. do it. assuming you're not publishing the app on play, a simple line added to the manifest should take care of the problem. CreateResourceFromFile(Macro, Core.NetworkClearText)
 
Upvote 0

MetalOS

Member
Licensed User
Longtime User
The biggest problem I encounter is if the screen goes to sleep the flow is cut and the application crashes. I tried the Wak lock but nothing worked. I am attaching my example.
 

Attachments

  • testExoPlayer.zip
    12.8 KB · Views: 3
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
It actually works. I'm really a drag.

Tanks
yes, bad MetalOS. bad.
i haven't tried to run your probject yet, but running exoplayer in a service and wake lock usually works. i watch tv (and listen to tv when driving) and listen to the radio with exoplayer. the screen is dark a lot of the time...
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
i would handle it something like the attached. see if you can figure out what it's doing. i've commented out the wakelock, but you may have to uncomment it.
 

Attachments

  • exo.zip
    10.5 KB · Views: 0
Upvote 0
Top