google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

CAS support #5804

Open jonasevcik opened 5 years ago

jonasevcik commented 5 years ago

[REQUIRED] Searched documentation and issues

[REQUIRED] Question

Is there a time frame/plan for adding CAS support? With Widevine CAS announced, it makes sense to provide an implementation for CA systems in general. Android already exposes all the necessary APIs since API lvl 26.

google-oss-bot commented 5 years ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

AquilesCanta commented 5 years ago

Hi @jonasevcik, we are working on this. I can't provide an ETA yet, though.

noamtamim commented 5 years ago

Hi @AquilesCanta / @ojw28. Two months later, is there an ETA for Widevine CAS support?

AquilesCanta commented 5 years ago

Not yet, sorry. I'd be interested in learning how you plan to use MediaCAS:

  1. Do you know what codecs you'll be using?
  2. Do you have protected content? How do you (plan to, if you don't have) produce protected content? Which parts of the stream are / will be encrypted?
  3. How will you/do you stream protected content? OTT?
noamtamim commented 5 years ago

We need a solution to the following use case, which by my understanding is the point of Widevine CAS.

The potential customer already has a legacy CA-protected stream. It is broadcast to existing set-top-boxes using UDP multicast. As a legacy CA system, the stream has ECMs in it (so far, from their existing CA provider -- our Widevine-based ECMs will be added too). They want to start using Android TV instead (or in addition) to the legacy STBs.

The content is being generated by an existing encoder and streamed via UDP to the network.

So, if I understand correctly, ExoPlayer would have to join the multicast (which it can already do for clear streams) and use MediaCas to descramble the stream.

noamtamim commented 5 years ago

Widevine CAS is now GA and the integration docs are published:

Is there a plan to implement CAS support in ExoPlayer in the near future?

EDIT: access to these docs is restricted to CWIP licensees.

AquilesCanta commented 5 years ago

I don't have access to those docs. If you can grant that, that would be great. I will also try to contact widevine on my side.

noamtamim commented 5 years ago

Sorry, I was under the impression that they don't need authorization because the links are published in the public-facing page https://www.widevine.com/news. I guess I can only access them because I'm logged in to my CWIP-enabled Google account. Unfortunately this means that I can't upload them here because it will probably violate the CWIP terms. However, I'm pretty sure that since they put the links on the public site, they also intended to remove the required authorization.

EDIT: I see they've attached the following text to the announcement:

Note: Access to Widevine documentation is now restricted to licensees. If you are unable to view the document links, please contact us.

Which means I'm definitely not allowed to share these docs, and you will have to get them from Widevine.

Al-Rasel commented 4 years ago

any update on this issue?

KarlGallagher commented 4 years ago

Hello all,

It would be good to know what the immediate plans are from the dev team here. This feature would be quite useful / important in enabling operators to switch from legacy systems to AndroidTV

ojw28 commented 4 years ago

We don't have any plans for this for at least the first three months of 2020, sorry.

noamtamim commented 4 years ago

Hi @ojw28, is there a plan to work on this feature in the near future?

ojw28 commented 4 years ago

We don't have any time allocated to this in Q2, sorry. I doubt we'll have time in Q3 either.

Zeno-Zhou commented 4 years ago

Hi @ojw28 do you have some plan for the CAS support now? thanks.

davydovvladimir commented 3 years ago

Hi @ojw28 Do you have any updates for this issue?

mpBee commented 2 years ago

Hello @ojw28

Are there any plans to support CAS in ExoPlayer in 2022/2023?

AquilesCanta commented 2 years ago

@tonihei CAS v1 is probably no longer relevant, but it might be worth asking the TV team what we can do on our side. You can find points of contact in [internal ref: b/239731089].

deano2390 commented 1 year ago

@AquilesCanta @tonihei Any updates on this?

hwang072 commented 10 months ago

Does ExoPlayer not support MediaCas? Is there a guide available on how to play CAS-encrypted files using MediaCas in ExoPlayer?