0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GStreamerでWebRTCを簡単に試してみる

Posted at

動作確認はMacで試しています

コードはこちらにあります👇

下記をインストール

brew install glib
brew install gstreamer
brew install libnice-gstreamer
brew install libsoup@2

受信のみ

  • webrtc-recvonly-h264
    webrtc-recvonly-h264.png
$ ./webrtc-recvonly-h264
WebRTC page link: http://127.0.0.1:57778/

送信のみ

  • webrtc-unidirectional-h264
    webrtc-unidirectional-h264.png
    送受信
$ ./webrtc-unidirectional-h264
WebRTC page link: http://127.0.0.1:57778/

送受信

  • webrtc-sendrecv
    webrtc-sendrecv.png

上記のコードではWebとシグナリングサーバが1つになっていますが、
このケースではWebとシグナリングサーバを立ち上げる必要があります

$ make server

http://localhost/ を開くと現在のPeerIDが表示されます。
これは、一時的な電話番号のようなものです。
そのIDに対して実行します。

$ ./webrtc-sendrecv --peer-id=9999

ブラウザを2つ立ち上げて、送受信できます

  • 送受信Java版
docker exec -it gst-java-sendrecv-1 java -jar app --peer-id=1111
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?