@ktt45678/vidstack
Version:
UI component library for building high-quality, accessible video and audio experiences on the web.
2 lines (1 loc) • 621 B
JavaScript
import{ao as d,e as r}from"./vidstack-DgnIG4vb.js";import{n as i,p as m}from"./vidstack-nZNas-dv.js";const p=i('<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>');function l(n,s){const o=m(p);o.innerHTML=d,n.append(o);const e=document.createElement("span");e.classList.add("vds-google-cast-info"),n.append(e);const t=document.createElement("span");t.classList.add("vds-google-cast-device-name"),r(()=>{const{remotePlaybackInfo:c}=s,a=c();return a?.deviceName&&(t.textContent=a.deviceName,e.append("Google Cast on ",t)),()=>{e.textContent=""}})}export{l as insertContent};