Commit f4722bd0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Initialize metadata with null

This matches Media Session API spec
"A MediaSession has an associated metadata object represented by a MediaMetadata. It is initially null."

BUG: 406782
parent 2899a2c8
......@@ -591,7 +591,7 @@ function loadMediaSessionsShim() {
${mediaSessionsClassName} = function() {};
${mediaSessionsClassName}.transferItem = null;
${mediaSessionsClassName}.callbacks = {};
${mediaSessionsClassName}.metadata = {};
${mediaSessionsClassName}.metadata = null;
${mediaSessionsClassName}.playbackState = "none";
${mediaSessionsClassName}.sendMessage = function(action, payload) {
this.transferItem.innerText = JSON.stringify({action: action, payload: payload});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment