Skip to content

Commit

Permalink
Total rework DVRIP source + add two way audio #633
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 11, 2023
1 parent de040fb commit 843a3ae
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 327 deletions.
12 changes: 3 additions & 9 deletions internal/dvrip/dvrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,11 @@ func Init() {
}

func handle(url string) (core.Producer, error) {
conn := dvrip.NewClient(url)
if err := conn.Dial(); err != nil {
return nil, err
}
if err := conn.Play(); err != nil {
return nil, err
}
if err := conn.Handle(); err != nil {
client, err := dvrip.Dial(url)
if err != nil {
return nil, err
}
return conn, nil
return client, nil
}

const Port = 34569 // UDP port number for dvrip discovery
Expand Down
Loading

0 comments on commit 843a3ae

Please sign in to comment.