stream.go 370 B

1234567891011121314151617181920212223
  1. package common
  2. import (
  3. "time"
  4. "m7s.live/engine/v4/config"
  5. "m7s.live/engine/v4/log"
  6. "m7s.live/engine/v4/util"
  7. )
  8. type IStream interface {
  9. AddTrack(Track) *util.Promise[Track]
  10. RemoveTrack(Track)
  11. Close()
  12. IsClosed() bool
  13. SSRC() uint32
  14. log.Zap
  15. Receive(any) bool
  16. SetIDR(Track)
  17. GetPublisherConfig() *config.Publish
  18. GetStartTime() time.Time
  19. GetType() string
  20. }