-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hi @moagrius
Is there any possibility to play encrypted video URL on the fly? Encryption follows is AES/CTR/NoPadding
The method mentioned by you in this repo is working fine with local encrypted video if I put the same video from URL to local storage.
The code that I have tried is below, the rest of the code is a copy of DefaultHTTPDataSource in exoplayer package
SecretKeySpec sks = new SecretKeySpec(key, "AES"); Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding"); cipher.init(Cipher.DECRYPT_MODE, sks, ivParameterSpec); InputStream inputStream = connection.getInputStream(); this.inputStream = new StreamingCipherInputStream(inputStream, cipher);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels