The mock encrypted event inside initializeMediaKeys does have nullinitData.
When getSupportedKeySystem() is called this results in an null is not an object (evaluating 'arrayBuffer2.byteLength') exception.
I think the following line in src/plugin.js line should have it's if condition reversed, so that null init data is correctly handled before calling hasSession() with the nullvalue.
The mock encrypted event inside
initializeMediaKeys
does havenull
initData
. WhengetSupportedKeySystem()
is called this results in annull is not an object (evaluating 'arrayBuffer2.byteLength')
exception.I think the following line in
src/plugin.js
line should have it's if condition reversed, so thatnull
init data is correctly handled before callinghasSession()
with thenull
value.https://github.com/videojs/videojs-contrib-eme/blob/8820c09cb8352c57f3a4c1125c54463b8a4ae318/src/plugin.js#L83