Skip to content

Commit 9f0099c

Browse files
authored
chore(llc): added listRecordings method to StreamVideo class (#724)
* added listRecordings method to StreamVideo class * updated changelogs
1 parent 34a2843 commit 9f0099c

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

docusaurus/docs/Flutter/05-advanced/05-call-recording.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ Before the user is allowed to start recording, the user must have the correspond
4444

4545
### Retrieving the call recordings
4646

47-
The call recording data can be retrieved by calling the `listRecordings()`. By default, this method will use the current call id (`CID`) to look up the recordings for the current call session. The method returns `List<CallRecording>` which allows you to loop over the different recording objects.
47+
The call recording data can be retrieved by calling the `listRecordings()` method of `Call` class. By default, this method will use the current call id (`CID`) to look up the recordings for the current call session. The method returns `List<CallRecording>` which allows you to loop over the different recording objects.
48+
49+
You can also call the `listRecordings()` method on the `StreamVideo` instance and specify the `cid` of the call you want to retrieve recordings for.
50+
51+
```dart
4852
4953
:::tip
5054
Multiple recordings can be made during a single call session, and a single call CID can also be reused for multiple sessions.

packages/stream_video/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## Upcoming
2+
3+
✅ Added
4+
* Added `watch` parameter to `StreamVideo.queryCalls()` method, allowing you to subscribe to queried call events. For more information, refer to the [documentation](https://getstream.io/video/docs/flutter/querying-calls/).
5+
* Introduced `listRecordings()` to `StreamVideo` object, enabling you to query call recordings using a provided call CID.
6+
7+
🔄 Changed
8+
* The default constructor for `StreamCallType` is now deprecated. Instead, use the `StreamCallType.defaultType()` factory constuctor.
9+
10+
🐞 Fixed
11+
* Improved the quality of screen sharing. It now correctly respects the parameters set in `ScreenSharingConstraints` to adjust the quality.
12+
113
## 0.4.3
214

315
🐞 Fixed

packages/stream_video/lib/src/stream_video.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'dart:async';
22

33
import 'package:async/async.dart' as async;
4+
import 'package:stream_video/open_api/video/coordinator/api.dart';
45
import 'package:uuid/uuid.dart';
56

67
import '../open_api/video/coordinator/api.dart' as open;
@@ -572,6 +573,15 @@ class StreamVideo extends Disposable {
572573
return _client.deleteDevice(id: pushToken, userId: currentUser.id);
573574
}
574575

576+
Future<Result<List<CallRecording>>> listRecordings(
577+
StreamCallCid callCid,
578+
) async {
579+
_logger.d(() => '[listRecordings] Call $callCid');
580+
final result = await _client.listRecordings(callCid);
581+
_logger.v(() => '[listRecordings] result: $result');
582+
return result;
583+
}
584+
575585
StreamSubscription<T>? onCallKitEvent<T extends CallKitEvent>(
576586
void Function(T event)? onEvent,
577587
) {

packages/stream_video_flutter/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## Upcoming
2+
3+
✅ Added
4+
* Added `watch` parameter to `StreamVideo.queryCalls()` method, allowing you to subscribe to queried call events. For more information, refer to the [documentation](https://getstream.io/video/docs/flutter/querying-calls/).
5+
* Introduced `listRecordings()` to `StreamVideo` object, enabling you to query call recordings using a provided call CID.
6+
7+
🔄 Changed
8+
* The default constructor for `StreamCallType` is now deprecated. Instead, use the `StreamCallType.defaultType()` factory constuctor.
9+
10+
🐞 Fixed
11+
* Improved the quality of screen sharing. It now correctly respects the parameters set in `ScreenSharingConstraints` to adjust the quality.
12+
* The `FloatingViewAlignment` enum is now properly exported in the `stream_video_flutter` package.
13+
114
## 0.4.3
215

316
🐞 Fixed

0 commit comments

Comments
 (0)