Skip to content

gb28181插件运行报错 #125

Description

@Arvin1412

运行gb28181报错,go mod tidy 引入包后,main.go文件和报错信息如下。
文件main.go
package main

import (
"context"
"flag"

// _ "github.com/Monibuca/plugin-gb28181"
"m7s.live/engine/v4"
_ "m7s.live/plugin/gb28181/v4"
// _ "m7s.live/plugin/hdl/v4"
// _ "m7s.live/plugin/rtmp/v4"
// _ "m7s.live/plugin/rtsp/v4"

)

func main() {
conf := flag.String("c", "config.yaml", "config file")
flag.Parse()
engine.Run(context.Background(), *conf)
}

报错
D:\work\GOProject\TT>go run main.go

m7s.live/plugin/ps/v4

C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:152:26: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewAAC: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:158:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewG711: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:164:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewG711: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:171:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewH264: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:178:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewH265: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:223:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewH264: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:225:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewH265: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:237:28: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewH264: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:240:28: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewH265: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:262:27: cannot use p.Publisher.Stream (variable of type *engine.Stream) as "m7s.live/engine/v4/common".IPuber value in argument to NewG711: *engine.Stream does not implement "m7s.live/engine/v4/common".IPuber (missing method GetAudioTrack)
C:\Users\EDY\go\pkg\mod\m7s.live\plugin\ps\v4@v4.1.3\publisher.go:262:27: too many errors

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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