File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class AudioPlayerPool {
88 private allowConcurrentPlayback : boolean ;
99
1010 constructor ( config ?: { allowConcurrentPlayback ?: boolean } ) {
11- this . allowConcurrentPlayback = config ?. allowConcurrentPlayback ?? true ;
11+ this . allowConcurrentPlayback = ! ! config ?. allowConcurrentPlayback ;
1212 }
1313
1414 get players ( ) {
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ type ChannelPropsForwardedToComponentContext = Pick<
168168export type ChannelProps = ChannelPropsForwardedToComponentContext & {
169169 /** Custom handler function that runs when the active channel has unread messages and the app is running on a separate browser tab */
170170 activeUnreadHandler ?: ( unread : number , documentTitle : string ) => void ;
171- /** Allows a single audio to be played by any audio player at a time. */
171+ /** Allows multiple audio players to play the audio at the same time. Disabled by default . */
172172 allowConcurrentAudioPlayback ?: boolean ;
173173 /** The connected and active channel */
174174 channel ?: StreamChannel ;
@@ -291,7 +291,7 @@ const ChannelInner = (
291291) => {
292292 const {
293293 activeUnreadHandler,
294- allowConcurrentAudioPlayback = true ,
294+ allowConcurrentAudioPlayback,
295295 channel,
296296 channelQueryOptions : propChannelQueryOptions ,
297297 children,
You can’t perform that action at this time.
0 commit comments