ionorg / ion-sdk-go

ion sdk for golang
MIT License
55 stars 46 forks source link

ion-sfu-gstreamer-receive sample does not work #45

Closed impleotv closed 3 years ago

impleotv commented 3 years ago

Command (as in the instructions): go get github.com/pion/ion-sdk-go/example/ion-sfu-gstreamer-receive

Result: github.com/pion/ion-sdk-go/example/ion-sfu-gstreamer-receive ./main.go:39:3: unknown field 'Log' in struct literal of type engine.Config

Thanks,

Alex

TannerGabriel commented 3 years ago

This seems to be an issue since the sdk.Config changed with the new ion-sdk-go version and therefore the parameters that need to be passed are different. Removing the log from the parameters should fix your issue:

config := sdk.Config{
  WebRTC: sdk.WebRTCTransportConfig{
      Configuration: webrtcCfg,
  },
}
impleotv commented 3 years ago

Yep. I figured that out. Just wanted to let you know.

Thanks,

Alex