Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
notedit committed May 5, 2020
1 parent 6720d88 commit 3028f83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 37 deletions.
37 changes: 6 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@ WebRTC media server for go



## Functionality

We intend to implement support the following features:

- [x] MP4 multitrack recording support for all WebRTC codecs: H264,VP8,VP9, OPUS and PCMU/A.
- [x] [VP9 SVC](https://tools.ietf.org/html/draft-ietf-payload-vp9-02) layer selection
- [x] Simulcast with temporal layer selection
- [x] [RTP transport wide congestion control](https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01)
- [x] Sender side BitRate estimation
- [ ] [Flex FEC draft 3](https://tools.ietf.org/html/draft-ietf-payload-flexible-fec-scheme-03)
- [x] NACK and RTX support
- [x] [RTCP reduced size] (https://tools.ietf.org/html/rfc5506)
- [x] Bundle
- [x] ICE lite
- [x] [Frame Marking] (https://tools.ietf.org/html/draft-ietf-avtext-framemarking-04)
- [x] [PERC double encryption] (https://tools.ietf.org/html/draft-ietf-perc-double-03)
- [x] Plain RTP broadcasting/streaming
- [ ] [Layer Refresh Request (LRR) RTCP Feedback Message] (https://datatracker.ietf.org/doc/html/draft-ietf-avtext-lrr-04)
- [x] Raw MediaFrame callback
- [x] Raw RTP Data input



## How to use
Expand All @@ -52,6 +31,9 @@ Yon can see the demos from here [Demos](https://github.com/notedit/media-server-

## Install


`media-server-go` is not go getable, so you should clone it and build it yourself.

You should install `libtool` and `autoconf` `automake` before you build


Expand Down Expand Up @@ -85,21 +67,14 @@ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
```


Build the native c/c++ code, see [media-server-go-native](https://github.com/notedit/media-server-go-native.git), it will install `openssl` `libsrtp` `mp4v2` `libmediaserver` into `/usr/local`


```sh
git clone --recurse-submodules https://github.com/notedit/media-server-go-native.git
git clone --recurse-submodules https://github.com/notedit/media-server-go.git

cd media-server-go-native
cd media-server-go

make
```

Install mediaserver go lib

```sh
go get github.com/notedit/media-server-go
go install

```

Expand Down
1 change: 0 additions & 1 deletion manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ First import both media server go and sdp module:

```go
import "github.com/notedit/media-server-go"
import "github.com/notedit/media-server-go/sdp"
```


Expand Down
9 changes: 4 additions & 5 deletions wrapper/module.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package native



/*
#cgo CXXFLAGS: -std=c++1z
#cgo CPPFLAGS: -I${SRCDIR}/../thirdparty/openssl/build/include/
Expand All @@ -12,10 +11,10 @@ package native
#cgo CPPFLAGS: -I${SRCDIR}/../media-server/ext/libdatachannels/src/internal/
#cgo CPPFLAGS: -I${SRCDIR}/../media-server/include/
#cgo CPPFLAGS: -I${SRCDIR}/../media-server/src/
#cgo LDFLAGS: -L${SRCDIR}/../thirdparty/openssl/build/ -lssl -lcrypto
#cgo LDFLAGS: -L${SRCDIR}/../thirdparty/libsrtp/build/ -lsrtp2
#cgo LDFLAGS: -L${SRCDIR}/../thirdparty/mp4v2/build/ -lmp4v2
#cgo LDFLAGS: -L${SRCDIR}/../media-server/bin/release/ -lmediaserver
#cgo LDFLAGS: -L${SRCDIR}/../media-server/bin/release -lmediaserver
#cgo LDFLAGS: -L${SRCDIR}/../thirdparty/openssl/build -lssl -lcrypto
#cgo LDFLAGS: -L${SRCDIR}/../thirdparty/libsrtp/build -lsrtp2
#cgo LDFLAGS: -L${SRCDIR}/../thirdparty/mp4v2/build -lmp4v2
#cgo LDFLAGS: -ldl
*/
import "C"

0 comments on commit 3028f83

Please sign in to comment.