-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Second call of player.configure fails #784
Comments
It is easy enough to fix the failure, but we will lose type-checking on the serverCertificate parameter. Therefore I'm going to fix this in two parts:
Part 2 will only be merged after #744 is fixed. |
Treating serverCertificate as an Object and recursing causes an exception the second time you set the serverCertificate config. As a quick fix that can be cherry-picked for v2.1.x, do not recurse on serverCertificate. This has the side-effect of not type-checking the serverCertificate field on input. A more detailed fix will be made later, for inclusion in v2.2. Issue #784 Change-Id: I84c05ee3dd370a4b83e9ce2337d2326ec36532c2
Treating serverCertificate as an Object and recursing causes an exception the second time you set the serverCertificate config. As a quick fix that can be cherry-picked for v2.1.x, do not recurse on serverCertificate. This has the side-effect of not type-checking the serverCertificate field on input. A more detailed fix will be made later, for inclusion in v2.2. Issue #784 Change-Id: I84c05ee3dd370a4b83e9ce2337d2326ec36532c2
Treating serverCertificate as an Object and recursing causes an exception the second time you set the serverCertificate config. As a quick fix that can be cherry-picked for v2.1.x, do not recurse on serverCertificate. This has the side-effect of not type-checking the serverCertificate field on input. A more detailed fix will be made later, for inclusion in v2.2. Issue #784 Change-Id: I84c05ee3dd370a4b83e9ce2337d2326ec36532c2
The first part of the fix has been cherry-picked to v2.1.1 and v2.0.9. The type of the |
What version of Shaka Player are you using?
395cc17
y
master
?y
Are you using the demo app or your own custom app?
y
y
What browser and OS are you using?
any
What did you do?
Load configuration using pseudo script called twice using console:
window.shakaDemo.localPlayer_.configure({"drm":{"advanced":{"com.widevine.alpha":{"serverCertificate":new Uint8Array(1)}}}})
What did you expect to happen?
no exception
What actually happened?
first call result: undefined
second call result:
Uncaught TypeError: Cannot read property '0' of null
The text was updated successfully, but these errors were encountered: