Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add PiP move threshold (#10040) (#10033)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 authored Feb 7, 2023
1 parent 5ac014f commit 4648fa3
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 119 deletions.
4 changes: 4 additions & 0 deletions src/voice-broadcast/models/VoiceBroadcastPlayback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ export class VoiceBroadcastPlayback
}

if (!this.playbacks.has(eventId)) {
// set to buffering while loading the chunk data
const currentState = this.getState();
this.setState(VoiceBroadcastPlaybackState.Buffering);
await this.loadPlayback(event);
this.setState(currentState);
}

const playback = this.playbacks.get(eventId);
Expand Down
Loading

0 comments on commit 4648fa3

Please sign in to comment.