• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. MediaKeySession
  4. MediaKeySession.update()

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility

MediaKeySession.update()

The MediaKeySession.update() method loads messages and licenses to the CDM, and then returns a Promise .

Syntax

mediaKeySession.update(response).then(function() { /* ... */ });

Parameters

response

An instance of type BufferSource.

Return value

A Promise.

Specifications

Specification
Encrypted Media Extensions
# dom-mediakeysession-update

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Dec 7, 2021, by MDN contributors

Related Topics

  1. MediaKeySession
  2. Properties
    1. closed
    2. expiration
    3. keyStatuses
    4. sessionId
  3. Methods
    1. close()
    2. generateRequest()
    3. load()
    4. remove()
    5. update()
  4. Events
    1. keystatuseschange
    2. message
  5. Inheritance:
    1. EventTarget
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies