Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Exception InvalidStateError

exception InvalidStateError
Extends com.amazon.apmf.BaseError Possible causes of this error are API is called in invalid state. The existing MediaKeys object cannot be removed at this time. The session has already been used. The session is not yet initialized. The session is closed. For more detail see https://www.w3.org/TR/encrypted-media/#dfn-InvalidStateError
Last modified on October 29, 2026