(puber *Publisher)
| 191 | } |
| 192 | |
| 193 | func (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 = ©Config |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | func (opt *Plugin) Publish(streamPath string, pub IPublisher) error { |
| 205 | puber := pub.GetPublisher() |
no test coverage detected