The need-key event could come as an element or message application.
Do not try to generate the challenge ourself.
Indeed PlayReady has a lot of different versions and ways to send the
challenge request. What we get here from Discretix can depend on each
file. We provide the data to the application and it is the application's
responsibility to format the challenge properly.
Also the acknowledge seems to always be in 2 stages. The Discretix
library continues marking that it needs and acknowledge event after we
received it. Track the current state with a member variable.
Make sure we define the event listeners.
Make sure we define the event listeners.
Make sure we define the event listeners.