MCPcopy Index your code
hub / github.com/Monibuca/engine / Summary

Method Summary

stream.go:246–259  ·  view source on GitHub ↗

Summary 返回流的简要信息

()

Source from the content-addressed store, hash-verified

244
245// Summary 返回流的简要信息
246func (s *Stream) Summary() (r StreamSummay) {
247 if s.publisher != nil {
248 r.Type = s.publisher.Type
249 }
250 s.Tracks.Range(func(name string, t common.Track) {
251 r.BPS += t.GetBPS()
252 r.Tracks = append(r.Tracks, name)
253 })
254 r.Path = s.Path
255 r.State = s.State
256 r.Subscribers = s.Subscribers.Len()
257 r.StartTime = s.StartTime
258 return
259}
260
261func (s *Stream) SSRC() uint32 {
262 return uint32(uintptr(unsafe.Pointer(s)))

Callers 1

collectMethod · 0.80

Calls 3

GetBPSMethod · 0.65
LenMethod · 0.65
RangeMethod · 0.45

Tested by

no test coverage detected