Support video-only streams if there is no audio in the inbound stream. (#401)
Closes #400
This commit is contained in:
@@ -30,6 +30,10 @@ func getInboundDetailsFromMetadata(metadata []interface{}) (models.RTMPStreamMet
|
||||
}
|
||||
|
||||
func getAudioCodec(codec interface{}) string {
|
||||
if codec == nil {
|
||||
return "No audio"
|
||||
}
|
||||
|
||||
var codecID float64
|
||||
if assertedCodecID, ok := codec.(float64); ok {
|
||||
codecID = assertedCodecID
|
||||
|
||||
Reference in New Issue
Block a user