Code Monkey home page Code Monkey logo

Comments (10)

ojw28 avatar ojw28 commented on May 18, 2024

Thanks for the report. You're correct in thinking that this relates to Android L rather than ExoPlayer. I've routed the issue internally.

from exoplayer.

ojw28 avatar ojw28 commented on May 18, 2024

Does it work if you set the "android-allow-cross-domain-redirect" header to "1" or "true"? You can pass the header into FrameworkSampleSource. For a quick and dirty test, you could try adding it directly in that class.

from exoplayer.

IanDBird avatar IanDBird commented on May 18, 2024

Sorry @ojw28, I only just saw your message. I've tried as you suggested, with both "1" and "true", and neither work. I continue to get:

MediaHTTPConnection﹕ readAt 0 / 32768 => java.net.NoRouteToHostException: Cross-domain redirects are disallowed

from exoplayer.

ojw28 avatar ojw28 commented on May 18, 2024

Could you send me a link to the test video (or a link to a branch that has it as a sample)?

from exoplayer.

IanDBird avatar IanDBird commented on May 18, 2024

Unfortunately not :( The content i'm using to test includes a private API key along with a URL which expires after a few minutes. It would be possible for you to setup our software and go through a lot of manual steps to reproduce although it might just be easier for you to setup a local webserver and a simple redirect from a local address to something online.

from exoplayer.

IanDBird avatar IanDBird commented on May 18, 2024

Actually, it might just be as easy as using a URL shortener against one of the Sample videos. I'll test to confirm.

from exoplayer.

IanDBird avatar IanDBird commented on May 18, 2024

Ok, so I took one of the sample MP4s (http://html5demos.com/assets/dizzy.mp4) and created a shorten version (http://goo.gl/MtUDEj). I was hoping that this would demonstrate the issue, but playback works fine. I guess that the main difference between this and the test files i'm using, is that my addresses redirect from HTTP to HTTPS then back to HTTP. Could this potentially be causing the issue?

from exoplayer.

ojw28 avatar ojw28 commented on May 18, 2024

Yes. My understanding is that there's a bug in the L developer preview where cross-protocol redirects are accidentally blocked. I'm mainly looking for a very low cost way to triple check that it's been fixed for the case you're hitting.

from exoplayer.

IanDBird avatar IanDBird commented on May 18, 2024

Thanks, it does look to be cross protocol specific. I don't know why I didn't think of this earlier, but the Google shortened URL also works with HTTPS. This means that the following redirect URL can be used to reproduce the issue: https://goo.gl/MtUDEj

This will redirect from goo.gl (HTTPS) to html5demos.com (HTTP).

from exoplayer.

ojw28 avatar ojw28 commented on May 18, 2024

Confirmed to be the same issue. Thanks!

from exoplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.