()
| 2125 | const sourceBuffer = ttsStreamingState.sourceBuffer |
| 2126 | |
| 2127 | const handleUpdateEnd = () => { |
| 2128 | setTtsStreamingState((prevState) => ({ |
| 2129 | ...prevState, |
| 2130 | isBuffering: false |
| 2131 | })) |
| 2132 | setTimeout(() => processChunkQueue(), 0) |
| 2133 | } |
| 2134 | |
| 2135 | sourceBuffer.addEventListener('updateend', handleUpdateEnd) |
| 2136 |
nothing calls this directly
no test coverage detected