Does ExoPlayer support multiple offline licenses, using separate licenses for each track?
@icbaker is already working on this.
Since Feb 13, 2025.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Using media3 1.1.1 w/ExoPlayer 2.19.1 on Android 11 AOSP
I am able to acquire multiple offline licenses using OfflineLicenseHelper(s), looking at the case of two licenses, one for video track, one for audio track. ExoPlayer is configured with a single custom DrmSessionManager implementation which loads these offline licenses into track-specific DrmSessions by previously loaded keySetIds obtained from the associated OfflineLicenseHelper.
When playing media for this case, I get "android.media.MediaCodec$CryptoException: Crypto key not available" in logcat.
If I use media that requires only one offline license for both tracks, then the custom DrmSessionManager only configures one DrmSession with that one license keySetId, and supplies that single DrmSession for each of the tracks. The content is successfully decrypted for this case.
I am working to verify all data paths are carrying the correct information for the two-license case, just to make sure the license/key information isn't getting swapped somewhere along the way. But I thought I'd better ask: Is ExoPlayer designed to handle this type of two-license case?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.