Skip to content

Playing excrypted URL on the fly #17

@belike-priyesh

Description

@belike-priyesh

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions