{"id":276,"date":"2026-04-08T05:25:19","date_gmt":"2026-04-07T20:25:19","guid":{"rendered":"https:\/\/ik1-221-80670.vs.sakura.ne.jp\/wordpress\/archives\/276"},"modified":"2026-06-26T16:44:30","modified_gmt":"2026-06-26T07:44:30","slug":"mediasoup%e5%85%ac%e5%bc%8fdemo%e3%81%ae%e5%b0%8e%e5%85%a5%e6%89%8b%e9%a0%86%e3%81%be%e3%81%a8%e3%82%81%ef%bc%88%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e8%b5%b7%e5%8b%95%e3%81%be%e3%81%a7%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/276","title":{"rendered":"mediasoup\u516c\u5f0f\u5c0e\u5165\u624b\u9806"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>mediasoup \u516c\u5f0f demo \u306f\u3001SFU \u306e\u57fa\u672c\u69cb\u6210\uff08Router \/ Transport \/ Producer \/ Consumer \/ signaling\uff09\u3092\u4e00\u901a\u308a\u78ba\u8a8d\u3067\u304d\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002\u6700\u521d\u306b mediasoup \u306e\u52d5\u4f5c\u5168\u4f53\u3092\u7406\u89e3\u3059\u308b\u306b\u306f\u516c\u5f0f demo \u306e\u8d77\u52d5\u304c\u6700\u3082\u52b9\u7387\u7684\u3067\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u74b0\u5883<\/h2>\n<ul>\n<li>Ubuntu 22.04 \u4ee5\u964d<\/li>\n<li>Node.js 20 \u4ee5\u4e0a<\/li>\n<li>git \/ build-essential \/ python3<\/li>\n<\/ul>\n<h2>1. \u5fc5\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165<\/h2>\n<pre><code>sudo apt update\nsudo apt install -y git build-essential python3\ncurl -fsSL https:\/\/deb.nodesource.com\/setup_20.x | sudo -E bash -\nsudo apt install -y nodejs\n<\/code><\/pre>\n<h2>2. demo \u3092 clone<\/h2>\n<pre><code>git clone https:\/\/github.com\/versatica\/mediasoup-demo.git\ncd mediasoup-demo\n<\/code><\/pre>\n<h2>3. \u4f9d\u5b58\u95a2\u4fc2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre><code>npm install\n<\/code><\/pre>\n<p>\u521d\u56de\u306f mediasoup worker \u306e C++ \u30d3\u30eb\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>4. \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u78ba\u8a8d<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f HTTPS \u7528\u8a3c\u660e\u66f8\u304c\u5fc5\u8981\u3067\u3059\u3002\u30ed\u30fc\u30ab\u30eb\u691c\u8a3c\u3067\u306f\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><code>cd server\nnpm run create-self-signed-cert\ncd ..\n<\/code><\/pre>\n<h2>5. \u8d77\u52d5<\/h2>\n<pre><code>npm start\n<\/code><\/pre>\n<h2>6. \u30d6\u30e9\u30a6\u30b6\u30a2\u30af\u30bb\u30b9<\/h2>\n<pre><code>https:\/\/localhost:3000\n<\/code><\/pre>\n<p>\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u8b66\u544a\u3092\u8a31\u53ef\u3059\u308b\u3068 demo \u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>7. Docker \u5229\u7528\u4f8b<\/h2>\n<pre><code>docker compose up\n<\/code><\/pre>\n<p>Dockerfile \u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4f9d\u5b58\u74b0\u5883\u5dee\u7570\u3092\u907f\u3051\u305f\u3044\u5834\u5408\u306f\u3053\u3061\u3089\u304c\u7c21\u5358\u3067\u3059\u3002<\/p>\n<h2>\u78ba\u8a8d\u3067\u304d\u308b\u30dd\u30a4\u30f3\u30c8<\/h2>\n<ul>\n<li>\u8907\u6570\u30e6\u30fc\u30b6\u30fc\u53c2\u52a0<\/li>\n<li>\u6620\u50cf\/\u97f3\u58f0 publish<\/li>\n<li>consumer \u81ea\u52d5\u751f\u6210<\/li>\n<li>Simulcast \/ bitrate \u5236\u5fa1<\/li>\n<\/ul>\n<h2>\u88dc\u8db3<\/h2>\n<p>\u516c\u5f0f demo \u306f production \u5411\u3051\u3067\u306f\u306a\u304f\u5b66\u7fd2\u7528\u9014\u3067\u3059\u3002\u672c\u756a\u3067\u306f signaling \u8a2d\u8a08\u30fb\u8a8d\u8a3c\u30fbTURN \u69cb\u6210\u3092\u72ec\u81ea\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 mediasoup \u516c\u5f0f demo \u306f\u3001SFU \u306e\u57fa\u672c\u69cb\u6210\uff08Router \/ Transport \/ Producer \/ Consumer \/ signaling\uff09\u3092\u4e00\u901a\u308a\u78ba\u8a8d\u3067\u304d\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002\u6700\u521d\u306b medi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":2,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/276\/revisions\/405"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}