You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-06 12:02:40 +03:00
Add test for updateLocalUsermediaStream (#2596)
This commit is contained in:
@@ -148,6 +148,7 @@ export class MockMediaStream {
|
||||
) {}
|
||||
|
||||
listeners: [string, (...args: any[]) => any][] = [];
|
||||
public isStopped = false;
|
||||
|
||||
dispatchEvent(eventType: string) {
|
||||
this.listeners.forEach(([t, c]) => {
|
||||
@@ -196,7 +197,9 @@ export class MockMediaHandler {
|
||||
this.userMediaStreams.push(stream);
|
||||
return stream;
|
||||
}
|
||||
stopUserMediaStream() { }
|
||||
stopUserMediaStream(stream: MockMediaStream) {
|
||||
stream.isStopped = true;
|
||||
}
|
||||
hasAudioDevice() { return true; }
|
||||
hasVideoDevice() { return true; }
|
||||
stopAllStreams() {}
|
||||
|
Reference in New Issue
Block a user