<Using cookies in Exoplayer streams> I'm trying to...
# stackoverflow
u
Using cookies in Exoplayer streams I'm trying to stream content from a url that returns a 404 if you're not logged in or a 302 redirect if you are. To log in, I need to pass a cookie in the headers for Exoplayer's requests, but I'm struggling to work out how. Previous answers suggest using a default Cookie Manager instance with your cookies already set. Others suggest setting the header as a map in HttpDataFactory.setDefaultRequestProperty. Neither have worked for me. Here's my working so far. val cookieManager =...