Is the default `initDataTransform` identity function configuration intended?
See original GitHub issue👋 there. 😃
I’m working on converting our bespoke FairPlay implementation to work within 2.5.5.
While stepping through Shaka’s implementation I arrived at this code in drm_engine:
I read this as, if a client has not specified a playerConfiguration.drm.initDataTransform callback then the default implementation should be used.
But, it turns out Shaka has a default identity function setup in configuration:
So, as a client, if I omit playerConfiguration.drm.initDataTransform than the default handling in drm_engine is ignored.
I want to believe the default impl in player_configuration is unintended based on the function | undefined documentation: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.PlayerConfiguration
Thanks for your feedback.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
Yes, either of those options should recursively reset all the DRM configurations. There is also a
player.resetConfiguration()method you can use to reset all configurations to the default.Thank you very much @TheModMaker.