Skip to content

Commit

Permalink
fixed the start and stop recording
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxx committed Jun 29, 2023
1 parent 7d122e3 commit b80a76f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ovenmedia/ovenmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type IOvenMediaClient interface {
StopPush(vHost string, appName string, body RequestBodyPush) (*resty.Response, error)
GetAllPushes(vHost string, appName string) (*ResponsePushes, error)
// Recording
StartRecording(url string, vHost string, appName string, body RequestRecordingStart) (*ResponseRecordingStart, error)
StopRecording(url string, vHost string, appName string, body RequestRecordingStop) (*ResponseRecordingStart, error)
StartRecording(vHost string, appName string, body RequestRecordingStart) (*ResponseRecordingStart, error)
StopRecording(vHost string, appName string, body RequestRecordingStop) (*ResponseRecordingStart, error)
GetRecordingState(vHost string, appName string, body *RequestRecordingStop) (*ResponseRecordingStart, error)
// Stats
GetStatsVhosts(vHost string) (*ResponseStats, error)
Expand Down
9 changes: 4 additions & 5 deletions ovenmedia/recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "encoding/json"

//

func (o *ovenMedia) StartRecording(url string, vHost string, appName string, body RequestRecordingStart) (*ResponseRecordingStart, error) {
func (o *ovenMedia) StartRecording(vHost string, appName string, body RequestRecordingStart) (*ResponseRecordingStart, error) {
//
resp, err := o.post(url+GET_VHOSTS_START_RECORDED_BY_NAME(vHost, appName), body)
resp, err := o.post(GET_VHOSTS_START_RECORDED_BY_NAME(vHost, appName), body)
if err != nil {
return nil, err
}
Expand All @@ -21,9 +21,8 @@ func (o *ovenMedia) StartRecording(url string, vHost string, appName string, bod

//

func (o *ovenMedia) StopRecording(url string, vHost string, appName string, body RequestRecordingStop) (*ResponseRecordingStart, error) {
//
resp, err := o.post(url+GET_VHOSTS_START_RECORDED_BY_NAME(vHost, appName), body)
func (o *ovenMedia) StopRecording(vHost string, appName string, body RequestRecordingStop) (*ResponseRecordingStart, error) {
resp, err := o.post(GET_VHOSTS_STOP_RECORDED_BY_NAME(vHost, appName), body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit b80a76f

Please sign in to comment.