Comments (10)
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.
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.
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.
Could you send me a link to the test video (or a link to a branch that has it as a sample)?
from exoplayer.
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.
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.
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.
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.
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.
Confirmed to be the same issue. Thanks!
from exoplayer.
Related Issues (20)
- how can I save video to local storage of exoplayer cached video like Tiktok does HOT 2
- Only first frame and Audio Plays in Android 23 with MPEG-4 - AVC HOT 1
- how to dynamic refresh the metadata of one playing media item? HOT 1
- How to limit the interval between change bitrate for HLS stream? HOT 1
- AV1 Seek Support Issue HOT 1
- eca3 - eca audio format HOT 1
- Failed to initialize OMX.MTK.VIDEO.DECODER.AVC.secure HOT 1
- Loading glsl shaders in Exoplayer? HOT 1
- play m3u8 media no audio HOT 1
- CC function broken in 2.18.7 HOT 1
- onDeviceVolumeChanged(int volume, boolean muted) is never triggered on a TV device HOT 1
- Video blinking when switching between videos with different ratios (Android 14 only) HOT 1
- How to gather HAR(HTTP Archive) file with ExoPlayer? HOT 1
- add support to play mpd dash which doesn't have default kid in it HOT 2
- Can I defined provision-url not by getProvisionRequest in FrameworkMediaDrm.
- Playing VP8 encoded webm format video, on Android 13, the video screen is unclear and appears blurred
- how triggers FIRST_QUARTILE HOT 1
- how to read sps and pps from the stream
- How in Exoplyaer Upgrade Gradle Version from agp_version = '7.4.2' to the latest 8.2? HOT 3
- how make default buildconfig to release I mean how change gradle that by default when build APK on Android Studio always be release by default? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exoplayer.