mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-05 08:36:56 +08:00
24 lines
370 B
Go
24 lines
370 B
Go
package common
|
|
|
|
import (
|
|
"time"
|
|
|
|
"m7s.live/engine/v4/config"
|
|
"m7s.live/engine/v4/log"
|
|
"m7s.live/engine/v4/util"
|
|
)
|
|
|
|
type IStream interface {
|
|
AddTrack(Track) *util.Promise[Track]
|
|
RemoveTrack(Track)
|
|
Close()
|
|
IsClosed() bool
|
|
SSRC() uint32
|
|
log.Zap
|
|
Receive(any) bool
|
|
SetIDR(Track)
|
|
GetPublisherConfig() *config.Publish
|
|
GetStartTime() time.Time
|
|
GetType() string
|
|
}
|