diff --git a/CHANGELOG.md b/CHANGELOG.md index 21ed82b..b64f898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ **Feature - Transcription params added in MPC XML Element** - Support for the `transcriptionUrl`, `transcript` parameter in MPC XML Element. +## [7.55.1](https://github.com/plivo/plivo-go/tree/v7.55.1) (2024-11-15) +**Feature - RecordParticipantTrack param added in MPC XML creation** +- Support for the `RecordParticipantTrack` parameter in MPC XML Creation. ## [7.55.0](https://github.com/plivo/plivo-go/tree/v7.55.0) (2024-11-12) **Feature - CreateRecordingTranscription and DeleteRecordingTranscription feature added** diff --git a/transcription.go b/transcription.go index b854e7d..1bcb045 100644 --- a/transcription.go +++ b/transcription.go @@ -9,13 +9,13 @@ type GetRecordingTranscriptionRequest struct { TranscriptionType string `json:"type"` } -type CallBackUrlStruct struct { - CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"` +type TranscriptionCallbackUrlStruct struct { + TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"` } type RecordingTranscriptionRequest struct { - RecordingID string `json:"recording_id"` - CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"` + RecordingID string `json:"recording_id"` + TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"` } type DeleteRecordingTranscriptionRequest struct { @@ -37,7 +37,7 @@ type GetRecordingTranscriptionResponse struct { } func (service *TranscriptionService) CreateRecordingTranscription(request RecordingTranscriptionRequest) (response map[string]interface{}, err error) { - param := CallBackUrlStruct{CallbackUrl: request.CallbackUrl} + param := TranscriptionCallbackUrlStruct{TranscriptionCallbackUrl: request.TranscriptionCallbackUrl} req, err := service.client.NewRequest("POST", param, "Transcription/%s", request.RecordingID) if err != nil { return diff --git a/xml/plivoxml.go b/xml/plivoxml.go index 6bfad8c..85c6abd 100644 --- a/xml/plivoxml.go +++ b/xml/plivoxml.go @@ -1199,6 +1199,12 @@ type MultiPartyCallElement struct { StopRecordingAudioMethod *string `xml:"StopRecordingAudioMethod,attr"` Transcript *bool `xml:"transcript,attr"` TranscriptionUrl *string `xml:"transcriptionUrl,attr"` + RecordParticipantTrack *bool `xml:"recordParticipantTrack,attr"` +} + +func (e MultiPartyCallElement) SetRecordParticipantTrack(value bool) MultiPartyCallElement { + e.RecordParticipantTrack = &value + return e } func (e MultiPartyCallElement) SetRole(value string) MultiPartyCallElement {