mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-14 12:13:50 +08:00
implement streams and streamcollections and finish message parsers
This commit is contained in:
@@ -169,10 +169,15 @@ func (m *Message) String() string {
|
||||
}
|
||||
|
||||
case MessageStreamCollection:
|
||||
collection := m.ParseStreamCollection()
|
||||
msg += fmt.Sprintf("New stream collection with upstream id: %s", collection.GetUpstreamID())
|
||||
|
||||
case MessageStreamsSelected:
|
||||
collection := m.ParseStreamsSelected()
|
||||
msg += fmt.Sprintf("Stream with upstream id '%s' has selected new streams", collection.GetUpstreamID())
|
||||
|
||||
case MessageRedirect:
|
||||
msg += fmt.Sprintf("Received redirect message with %d entries", m.NumRedirectEntries())
|
||||
|
||||
case MessageUnknown:
|
||||
msg += "Unknown message type"
|
||||
|
Reference in New Issue
Block a user