google / google/ExoPlayer

Set redirected URL in LoadEventInfo when error occurs during HttpDataSource.open()

Open
#10,412 4 comments 0 reactions 1 assignee Assigned to @tonihei View on GitHub
enhancement
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

It is possible to get real url (after redirections) if error occured?
Class LoadEventInfo contains url and if no error (event onLoadCompleted) in this field I have real url.
But on event onLoadError LoadEventInfo.url equal to LoadEventInfo.DataSpec.url
To test this case I prepared environment with download error after second redirection.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.