viewof playing1 = {
let playing = false;
const node = html`<div><button>Play</button></div>`;
const button = node.querySelector("button");
button.addEventListener("click", function (e) {
node.value = playing = !playing;
node.dispatchEvent(new CustomEvent("input"));
if (playing) {
button.textContent = "Pause";
} else {
button.textContent = "Play";
}
});
node.value = playing;
return node;
}