Skip to content

Commit

Permalink
Merge branch 'main' of github.com:GetStream/getstream-go
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Feb 10, 2025
2 parents 1dfb95f + 27f123b commit 63f356c
Show file tree
Hide file tree
Showing 13 changed files with 916 additions and 118 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 1.2.0 (2025-02-10)

## 1.1.0 (2025-01-13)

## 1.0.0 (2024-12-31)
Expand Down
12 changes: 10 additions & 2 deletions call.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 36 additions & 3 deletions chat.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions chat_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions common.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,43 @@ func TestCreateChatChannelBasics(t *testing.T) {
require.NoError(t, err)
assert.NotNil(t, deleteResponse.Data.Channel.DeletedAt)
}

func TestCall_FrameRecording(t *testing.T) {
t.Skip("this is just an example, don't run it")

client := initClient(t)
call := client.Video().Call("default", "call-id")

_, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{
Ring: getstream.PtrTo(true),
})
require.NoError(t, err)

_, err = call.StartFrameRecording(ctx, &getstream.StartFrameRecordingRequest{})
require.NoError(t, err)

resp, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{})
require.NoError(t, err)

resp.Data.Call.Egress.FrameRecording.Status = "recording"

_, err = call.StopFrameRecording(ctx, &getstream.StopFrameRecordingRequest{})
require.NoError(t, err)
}

func TestCall_AutoFrameRecording(t *testing.T) {
client := initClient(t)
call_type_name := "default"

// Automatically record calls
resp, err := client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{
Settings: &getstream.CallSettingsRequest{
FrameRecording: &getstream.FrameRecordingSettingsRequest{
Mode: "auto-on",
CaptureIntervalInSeconds: 2,
},
},
})
require.NoError(t, err)
assert.Equal(t, "auto-on", resp.Data.Settings.FrameRecording.Mode)
}
Loading

0 comments on commit 63f356c

Please sign in to comment.