revert d3e3e92f9b
revert feat(audio): migrate from ScriptProcessorNode to AudioWorkletNode for low-latency broadcasting - Implemented `BroadcasterProcessor` for audio processing in a separate audio thread. - Replaced deprecated `ScriptProcessorNode` with `AudioWorkletNode` in `startBroadcast`. - Enhanced audio performance by reducing main thread interference and improving scalability. - Added `broadcaster-processor.js` to handle custom audio processing logic. This change ensures compatibility with modern browsers and improves broadcast audio quality.
This commit is contained in:
13
index.html
13
index.html
@ -24,18 +24,6 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
navigator.mediaDevices.getUserMedia({ audio: true })
|
||||
.then(stream => {
|
||||
// Handle audio stream here
|
||||
console.log("Microphone access granted:", stream);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error("Microphone access denied:", error);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-dark text-light">
|
||||
<div id="titlebar">
|
||||
@ -43,7 +31,6 @@
|
||||
</div>
|
||||
<div class="container mt-5 text-center">
|
||||
<h1>pearCast</h1>
|
||||
<div id="retry-message-bar" class="alert alert-warning d-none" role="alert"></div>
|
||||
<div id="setup" class="btn-group mt-4">
|
||||
<button id="create-station" class="btn btn-primary">Create Station</button>
|
||||
<button id="open-join-modal" class="btn btn-secondary" data-bs-toggle="modal" data-bs-target="#joinModal">Join Station</button>
|
||||
|
Reference in New Issue
Block a user