MCPcopy Create free account
hub / github.com/Monibuca/engine / AssignPubConfig

Method AssignPubConfig

plugin.go:193–202  ·  view source on GitHub ↗
(puber *Publisher)

Source from the content-addressed store, hash-verified

191}
192
193func (opt *Plugin) AssignPubConfig(puber *Publisher) {
194 if puber.Config == nil {
195 conf, ok := opt.Config.(config.PublishConfig)
196 if !ok {
197 conf = EngineConfig
198 }
199 copyConfig := conf.GetPublishConfig()
200 puber.Config = &copyConfig
201 }
202}
203
204func (opt *Plugin) Publish(streamPath string, pub IPublisher) error {
205 puber := pub.GetPublisher()

Callers 2

PublishMethod · 0.95
PullMethod · 0.95

Calls 1

GetPublishConfigMethod · 0.65

Tested by

no test coverage detected