Skip to content

Commit

Permalink
Add example of using with Janus video-room
Browse files Browse the repository at this point in the history
Resolves #268
  • Loading branch information
Sean-Der authored and backkem committed Dec 9, 2018
1 parent 265ab1a commit 105db50
Show file tree
Hide file tree
Showing 16 changed files with 161 additions and 206 deletions.
2 changes: 1 addition & 1 deletion gstreamer-receive/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"time"

"github.com/pions/webrtc"
"github.com/pions/webrtc/examples/gstreamer-receive/gst"
"github.com/pions/webrtc/examples/util"
"github.com/pions/webrtc/examples/util/gstreamer-sink"
"github.com/pions/webrtc/pkg/ice"
"github.com/pions/webrtc/pkg/rtcp"
)
Expand Down
2 changes: 1 addition & 1 deletion gstreamer-send-offer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/pions/webrtc"
"github.com/pions/webrtc/examples/gstreamer-send/gst"
"github.com/pions/webrtc/examples/util"
"github.com/pions/webrtc/examples/util/gstreamer-src"
"github.com/pions/webrtc/pkg/ice"
)

Expand Down
88 changes: 0 additions & 88 deletions gstreamer-send/gst/gst.c

This file was deleted.

99 changes: 0 additions & 99 deletions gstreamer-send/gst/gst.go

This file was deleted.

16 changes: 0 additions & 16 deletions gstreamer-send/gst/gst.h

This file was deleted.

2 changes: 1 addition & 1 deletion gstreamer-send/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/pions/webrtc"
"github.com/pions/webrtc/examples/gstreamer-send/gst"
"github.com/pions/webrtc/examples/util"
"github.com/pions/webrtc/examples/util/gstreamer-src"
"github.com/pions/webrtc/pkg/ice"
)

Expand Down
10 changes: 10 additions & 0 deletions janus-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ Got VP8 track, saving to disk as output.ivf
```

You will see output.ivf in the current folder.

## video-room
This example demonstrates how to stream to a Janus video-room using pion-WebRTC

### Running
run `main.go` in `github.com/pions/webrtc/examples/janus-gateway/video-room`

If this worked you should see a test video in video-room `1234`

This is the default demo-room that exists in the sample configs, and can quickly be accessed via the Janus demos.
9 changes: 9 additions & 0 deletions janus-gateway/video-room/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/pions/webrtc/examples/janus-gateway/streaming

replace github.com/pions/webrtc => ../../../

require (
github.com/gorilla/websocket v1.4.0 // indirect
github.com/notedit/janus-go v0.0.0-20180821162543-a152adf0cb7b
github.com/pions/webrtc v1.1.1
)
20 changes: 20 additions & 0 deletions janus-gateway/video-room/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=
github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
github.com/notedit/janus-go v0.0.0-20180821162543-a152adf0cb7b h1:GT1/zfKpQHX4Cz7F1QUE/tjE/OP0KM5aYaFiKVRgvkk=
github.com/notedit/janus-go v0.0.0-20180821162543-a152adf0cb7b/go.mod h1:BN/Txse3qz8tZOmCm2OfajB2wHVujWmX3o9nVdsI6gE=
github.com/pions/pkg v0.0.0-20181115215726-b60cd756f712 h1:ciXO7F7PusyAzW/EZJt01bETgfTxP/BIGoWQ15pBP54=
github.com/pions/pkg v0.0.0-20181115215726-b60cd756f712/go.mod h1:r9wKZs+Xxv2acLspex4CHQiIhFjGK1zGP+nUm/8klXA=
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/net v0.0.0-20181129055619-fae4c4e3ad76 h1:xx5MUFyRQRbPk6VjWjIE1epE/K5AoDD8QUN116NCy8k=
golang.org/x/net v0.0.0-20181129055619-fae4c4e3ad76/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
gotest.tools v2.2.0+incompatible h1:y0IMTfclpMdsdIbr6uwmJn5/WZ7vFuObxDMdrylFM3A=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
Loading

0 comments on commit 105db50

Please sign in to comment.