Support framerate to be a float. For #378
This commit is contained in:
@@ -10,14 +10,14 @@ type Broadcaster struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InboundStreamDetails struct {
|
type InboundStreamDetails struct {
|
||||||
Width int `json:"width"`
|
Width int `json:"width"`
|
||||||
Height int `json:"height"`
|
Height int `json:"height"`
|
||||||
VideoFramerate int `json:"framerate"`
|
VideoFramerate float32 `json:"framerate"`
|
||||||
VideoBitrate int `json:"videoBitrate"`
|
VideoBitrate int `json:"videoBitrate"`
|
||||||
VideoCodec string `json:"videoCodec"`
|
VideoCodec string `json:"videoCodec"`
|
||||||
AudioBitrate int `json:"audioBitrate"`
|
AudioBitrate int `json:"audioBitrate"`
|
||||||
AudioCodec string `json:"audioCodec"`
|
AudioCodec string `json:"audioCodec"`
|
||||||
Encoder string `json:"encoder"`
|
Encoder string `json:"encoder"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RTMPStreamMetadata is the raw metadata that comes in with a RTMP connection.
|
// RTMPStreamMetadata is the raw metadata that comes in with a RTMP connection.
|
||||||
@@ -26,7 +26,7 @@ type RTMPStreamMetadata struct {
|
|||||||
Height int `json:"height"`
|
Height int `json:"height"`
|
||||||
VideoBitrate float32 `json:"videodatarate"`
|
VideoBitrate float32 `json:"videodatarate"`
|
||||||
VideoCodec interface{} `json:"videocodecid"`
|
VideoCodec interface{} `json:"videocodecid"`
|
||||||
VideoFramerate int `json:"framerate"`
|
VideoFramerate float32 `json:"framerate"`
|
||||||
AudioBitrate float32 `json:"audiodatarate"`
|
AudioBitrate float32 `json:"audiodatarate"`
|
||||||
AudioCodec interface{} `json:"audiocodecid"`
|
AudioCodec interface{} `json:"audiocodecid"`
|
||||||
Encoder string `json:"encoder"`
|
Encoder string `json:"encoder"`
|
||||||
|
|||||||
Reference in New Issue
Block a user