google / google/ExoPlayer

Invalid Nal Length Error In Playing Encrypted video online

Open
#11,229 7 comments 0 reactions 1 assignee Assigned to @icbaker View on GitHub
question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi, I have an encrypted video stored on the server which I want to play in Exoplayer. I am using this [repo](https://github.com/moagrius/EncryptedExoPlayerDemo) custom datasource for playing encrypted video offline. For online playback, I added some code from Exoplayer `DefaultHttpDataSource` to implement the `setupInputStream` function from the server instead of the local file. The video plays but when I change the seekbar position after a few moments, I get an Invalid Nal Length Error and OnPlayerError is called. My Encryption Alghoritm is `AES/CTR/NOPadding`

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.