Skip to content

Set the video element's media keys to null on teardown to allow loadi…

Created by: rincedd

…ng new media keys on reset

  • This fixes "DOMException: The existing MediaKeys object cannot be removed while a media resource is loaded" that occurs when switching from one encrypted stream to another one using MediaPlayer.attachSource().

Merge request reports