Skip to content

(missing method RID) #690

@fahrizalfarid

Description

@fahrizalfarid

Hello guys, thank you for such amazing framework.
i got the error like :

\github.com\pion\ion-sfu@v1.11.0\pkg\sfu\publisher.go:380:70: cannot use downTrack (variable of type *DownTrac k) as webrtc.TrackLocal value in argument to rp.AddTrack: *DownTrack does not implement webrtc.TrackLocal (missing method RID)

i just found how to fix it, just wanna help you.
just go to pkg/sfu/downtrack.go

and just add this line :
func (d *DownTrack) RID() string { return d.id // or whatever field/method gives the RID }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions