1const t={id:"codec-test",title:"Codec Test",description:"Opus/AAC/FLAC capability probing.",category:"Codec & Pipeline",defaultSettings:{codec:"opus",bitrate:128,testMode:"capability",playing:!1},codecs:{opus:"Opus",aac:"AAC",flac:"FLAC",mp3:"MP3"},async checkCodecSupport(){const t={} 2if(window.MediaCapabilities){const e=[{type:"file",audio:{contentType:"audio/opus"}},{type:"file",audio:{contentType:"audio/aac"}},{type:"file",audio:{contentType:"audio/flac"}},{type:"file",audio:{contentType:"audio/mpeg"}}] 3for(const o of e)try{const e=await navigator.mediaCapabilities.decodingInfo(o) 4t[o.audio.contentType]=e}catch(e){t[o.audio.contentType]={supported:!1}}}return t},createNodes(t,e){const o=t.createAnalyser() 5return o.connect(e),{analyser:o,codecSupport:{}}},async start(t,e,o){t.codecSupport=await this.checkCodecSupport()},stop(t){},updateSettings(t,e,o){},keyboard:{handlers:{" ":t=>({playing:!t.playing})}},visualization:{type:"codec-matrix"},controls:{showPlayButton:!0,infoText:"Test browser codec support and capabilities."}} 6export{t as default}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.