Skip to content

Commit

Permalink
Merge pull request #853 from strukturag/codec-config
Browse files Browse the repository at this point in the history
Support passing codec parameters when creating publishers.
  • Loading branch information
fancycode authored Nov 4, 2024
2 parents 0bf35cc + fea901d commit 47abaa1
Show file tree
Hide file tree
Showing 18 changed files with 793 additions and 271 deletions.
42 changes: 35 additions & 7 deletions api_async_easyjson.go

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

19 changes: 17 additions & 2 deletions api_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,30 @@ type ByeProxyServerMessage struct {

// Type "command"

type NewPublisherSettings struct {
Bitrate int `json:"bitrate,omitempty"`
MediaTypes MediaType `json:"mediatypes,omitempty"`

AudioCodec string `json:"audiocodec,omitempty"`
VideoCodec string `json:"videocodec,omitempty"`
VP9Profile string `json:"vp9_profile,omitempty"`
H264Profile string `json:"h264_profile,omitempty"`
}

type CommandProxyClientMessage struct {
Type string `json:"type"`

Sid string `json:"sid,omitempty"`
StreamType StreamType `json:"streamType,omitempty"`
PublisherId string `json:"publisherId,omitempty"`
ClientId string `json:"clientId,omitempty"`
Bitrate int `json:"bitrate,omitempty"`
MediaTypes MediaType `json:"mediatypes,omitempty"`

// Deprecated: use PublisherSettings instead.
Bitrate int `json:"bitrate,omitempty"`
// Deprecated: use PublisherSettings instead.
MediaTypes MediaType `json:"mediatypes,omitempty"`

PublisherSettings *NewPublisherSettings `json:"publisherSettings,omitempty"`

RemoteUrl string `json:"remoteUrl,omitempty"`
remoteUrl *url.URL
Expand Down
Loading

0 comments on commit 47abaa1

Please sign in to comment.