Add voice broadcast playback seekbar (#9529)

This commit is contained in:
Michael Weimann 2022-11-04 11:50:19 +01:00 committed by GitHub
parent 04bc8fb71c
commit 66d0b318bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 339 additions and 70 deletions

View file

@ -60,7 +60,7 @@ describe("VoiceBroadcastPlaybackBody", () => {
playback = new VoiceBroadcastPlayback(infoEvent, client);
jest.spyOn(playback, "toggle").mockImplementation(() => Promise.resolve());
jest.spyOn(playback, "getState");
jest.spyOn(playback, "getLength").mockReturnValue((23 * 60 + 42) * 1000); // 23:42
jest.spyOn(playback, "durationSeconds", "get").mockReturnValue(23 * 60 + 42); // 23:42
});
describe("when rendering a buffering voice broadcast", () => {