Open
Bug 1705472
Opened 4 years ago
Updated 4 years ago
ExoPlayer should send cookies with HTTP requests
Categories
(Core :: Audio/Video: Playback, defect, P3)
Core
Audio/Video: Playback
Tracking
()
NEW
People
(Reporter: padenot, Unassigned)
References
Details
STR:
- Have a website that uses HLS, but where the actual files in the playlist require a specific cookie for download, for example using AWS CloudFront signed cookie solution
Expected:
- After the cookie(s) are place on the user's device, the stream can be accessed, and the media is played correctly
Actual:
- The media isn't played. ExoPlayer throws an exception:
E ExoPlayerImplInternal: Source error
E ExoPlayerImplInternal: org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
E ExoPlayerImplInternal: at org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:43)
E ExoPlayerImplInternal: at org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:58)
E ExoPlayerImplInternal: at org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:3)
E ExoPlayerImplInternal: at org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.DataSourceInputStream.open(DataSourceInputStream.java:2)
E ExoPlayerImplInternal: at org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.ParsingLoadable.load(ParsingLoadable.java:3)
E ExoPlayerImplInternal: at org.mozilla.thirdparty.com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:6)
E ExoPlayerImplInternal: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E ExoPlayerImplInternal: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E ExoPlayerImplInternal: at java.lang.Thread.run(Thread.java:923)
I ExoPlayerImpl: Release 89d1508 [ExoPlayerLib/2.11.4] [flame, Pixel 4, Google, 30] [goog.exo.core, goog.exo.hls]
I Gecko : [Child 22313, Unnamed thread 6e4e0de890] WARNING: Decoder=6d9de62000 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:366
I Gecko : [Child 22313, Unnamed thread 6e4e0de890] WARNING: Decoder=6d9de62000 Decode error: NS_ERROR_DOM_MEDIA_CANCELED (0x806e000a): file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:3490
and then the HTMLMediaElement errors out.
It seems like exoplayer doesn't send the cookies, because it using its own HTTP channels. From a quick web search, this is not hard to do in terms of API.
| Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Severity: -- → S3
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•