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