mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-05 08:36:56 +08:00
精简代码
This commit is contained in:
@@ -186,12 +186,7 @@ func (opt *Plugin) Publish(streamPath string, pub IPublisher) bool {
|
||||
if !ok {
|
||||
conf = EngineConfig
|
||||
}
|
||||
if ok = pub.receive(streamPath, pub, conf.GetPublishConfig()); ok {
|
||||
p := pub.GetPublisher()
|
||||
p.AudioTrack = p.Stream.NewAudioTrack()
|
||||
p.VideoTrack = p.Stream.NewVideoTrack()
|
||||
}
|
||||
return ok
|
||||
return pub.receive(streamPath, pub, conf.GetPublishConfig())
|
||||
}
|
||||
|
||||
func (opt *Plugin) Subscribe(streamPath string, sub ISubscriber) bool {
|
||||
|
Reference in New Issue
Block a user