MCPcopy
hub / github.com/AlexxIT/go2rtc / Equal

Method Equal

pkg/core/media.go:86–91  ·  view source on GitHub ↗
(media *Media)

Source from the content-addressed store, hash-verified

84}
85
86func (m *Media) Equal(media *Media) bool {
87 if media.ID != "" {
88 return m.ID == media.ID
89 }
90 return m.String() == media.String()
91}
92
93func GetKind(name string) string {
94 switch name {

Callers 15

TestGetStreamUriFunction · 0.80
TestGetCapabilitiesFunction · 0.80
runMethod · 0.80
TestFormatAlphaNumFunction · 0.80
TestEncryptionFunction · 0.80
TestMarshalFunction · 0.80
TestBytesFunction · 0.80
TestVideoCodecParamsFunction · 0.80
TestInterfaceFunction · 0.80
TestSlice1Function · 0.80
TestSlice2Function · 0.80
TestMatchHostFunction · 0.80

Calls 1

StringMethod · 0.95

Tested by 15

TestGetStreamUriFunction · 0.64
TestGetCapabilitiesFunction · 0.64
runMethod · 0.64
TestFormatAlphaNumFunction · 0.64
TestEncryptionFunction · 0.64
TestMarshalFunction · 0.64
TestBytesFunction · 0.64
TestVideoCodecParamsFunction · 0.64
TestInterfaceFunction · 0.64
TestSlice1Function · 0.64
TestSlice2Function · 0.64
TestMatchHostFunction · 0.64