mirror of
https://github.com/AynaLivePlayer/liveroom-sdk.git
synced 2025-12-06 12:42:53 +08:00
12 lines
241 B
Go
12 lines
241 B
Go
package liveroom
|
|
|
|
import "errors"
|
|
|
|
func CreateLiveRoom(config LiveRoom) (ILiveRoom, error) {
|
|
provider, ok := GetProvider(config.Provider)
|
|
if !ok {
|
|
return nil, errors.New("provider not found")
|
|
}
|
|
return provider.CreateLiveRoom(config)
|
|
}
|