mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Notify when we stop streaming
This commit is contained in:
@ -66,4 +66,15 @@ class CallsHelper {
|
||||
/// Mark ourselves as ready to stream to other peers
|
||||
static Future<void> markPeerReady(int callID) async =>
|
||||
await ws("calls/mark_ready", {"callID": callID});
|
||||
|
||||
/// Notify other peers that we stopped streaming
|
||||
///
|
||||
/// This method never throw
|
||||
static Future<void> notifyStoppedStreaming(int callID) async {
|
||||
try {
|
||||
await ws("calls/stop_streaming", {"callID": callID});
|
||||
} catch (e, stack) {
|
||||
print("$e\n$stack");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user