You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to intercept the redirection url of a mediaSource following an HTTP 307 response from outside Exo without customizing the HttpDataSource class?
The text was updated successfully, but these errors were encountered:
Is it possible to intercept the redirection url of a mediaSource following an HTTP 307 response from outside Exo
I'm not sure I understand what you mean with outside Exo.
If you mean intercept as in stopping such request then probably no. If intercept just means having access to it, then you can learn about the loaded data by listening to appropriate events the player emits.
AnalyticsListener has methods like onLoadStarted(EventTime eventTime, LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData) and onLoadCompleted/onLoadCancelled. All of these report a LoadEventInfo. The JavaDoc of LoadEventInfo.uri says:
/**
* The {@link Uri} from which data is being read. The uri will be identical to the one in {@link
* #dataSpec}.uri unless redirection has occurred. If redirection has occurred, this is the uri
* after redirection.
*/
If this does not help, then you need to give some more info around what you are trying to achieve.
Hello,
Is it possible to intercept the redirection url of a mediaSource following an HTTP 307 response from outside Exo without customizing the HttpDataSource class?
The text was updated successfully, but these errors were encountered: