{"id":2953,"date":"2025-01-27T09:40:36","date_gmt":"2025-01-27T00:40:36","guid":{"rendered":"https:\/\/www.agile-software.site\/?p=2953"},"modified":"2025-01-27T09:40:43","modified_gmt":"2025-01-27T00:40:43","slug":"webrtc%e3%81%ae%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%81%a8","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=2953","title":{"rendered":"WebRTC\u306e\u74b0\u5883\u69cb\u7bc9\u3068"},"content":{"rendered":"\n<p><strong>WebRTC\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Web\u30a2\u30d7\u30ea: <a href=\"https:\/\/simplewebrtc.com\/\">SimpleWebRTC<\/a>\u3084<a href=\"https:\/\/peerjs.com\/\">PeerJS<\/a>\u3092\u4f7f\u7528\u3002<\/li>\n\n\n\n<li>\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea: <a href=\"https:\/\/github.com\/pion\/webrtc\">Pion<\/a>\uff08Go\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u3084<code>libwebrtc<\/code>\u3092\u4f7f\u7528\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WebRTC\u306e\u63a5\u7d9a\u306b\u306f\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n\n\n\n<li>WebSocket\u3084Firebase\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>STUN\/TURN\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u3067\u306e\u63a5\u7d9a\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u3001<a href=\"\">Google STUN\u30b5\u30fc\u30d0\u30fc<\/a>\u3084\u30aa\u30fc\u30d7\u30f3\u306aTURN\u30b5\u30fc\u30d0\u30fc\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-jin-gb-block-chat-block balloon-box balloon-left clearfix has-ccc-ballon has-efefef-bgballon\"><span class=\"icon-name\">\u30a2\u30a4\u30b3\u30f3\u540d\u3092\u5165\u529b<\/span><div class=\"balloon-serif\"><div class=\"balloon-content\">\n<h3 class=\"wp-block-heading\">1. <strong>STUN\u30b5\u30fc\u30d0\u30fc (Session Traversal Utilities for NAT)<\/strong><\/h3>\n\n\n\n<p>STUN\u30b5\u30fc\u30d0\u30fc\u306f\u3001NAT\uff08\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c9\u30ec\u30b9\u5909\u63db\uff09\u8d8a\u3057\u306b\u901a\u4fe1\u3059\u308b\u969b\u306b\u5fc5\u8981\u306a\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5f79\u5272:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u81ea\u5206\u306e<strong>\u30d1\u30d6\u30ea\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9<\/strong>\u3068\u30dd\u30fc\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306e\u3092\u652f\u63f4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>NAT\u74b0\u5883\u3067\u306f\u3001\u7aef\u672b\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30d1\u30d6\u30ea\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u81ea\u8eab\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP\u3068\u30dd\u30fc\u30c8\u3092\u77e5\u308b\u305f\u3081\u306bSTUN\u30b5\u30fc\u30d0\u30fc\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5229\u7528\u3055\u308c\u308b\u30b1\u30fc\u30b9:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u901a\u5e38\u306eP2P\u901a\u4fe1\u3067NAT\u8d8a\u3048\u304c\u53ef\u80fd\u306a\u5834\u5408\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u4f8b: \u30e6\u30fc\u30b6\u30fc\u9593\u3067\u76f4\u63a5\u901a\u4fe1\u3067\u304d\u308b\u5834\u5408\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u30d7\u30ed\u30c8\u30b3\u30eb:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>STUN\u306fUDP\u3092\u4e3b\u306b\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001TCP\u3067\u3082\u52d5\u4f5c\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>TURN\u30b5\u30fc\u30d0\u30fc (Traversal Using Relays around NAT)<\/strong><\/h3>\n\n\n\n<p>TURN\u30b5\u30fc\u30d0\u30fc\u306f\u3001STUN\u30b5\u30fc\u30d0\u30fc\u3067\u76f4\u63a5\u901a\u4fe1\u3067\u304d\u306a\u3044\u5834\u5408\u306e\u4ee3\u66ff\u624b\u6bb5\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5f79\u5272:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30ea\u30ec\u30fc\u30b5\u30fc\u30d0\u30fc<\/strong>\u3068\u3057\u3066\u52d5\u4f5c\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9593\u306e\u901a\u4fe1\u3092\u4e2d\u7d99\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>NAT\u3084\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u53b3\u3057\u304f\u3001P2P\u63a5\u7d9a\u304c\u78ba\u7acb\u3067\u304d\u306a\u3044\u5834\u5408\u306b\u3001TURN\u30b5\u30fc\u30d0\u30fc\u3092\u4ecb\u3057\u3066\u30c7\u30fc\u30bf\u3092\u9001\u53d7\u4fe1\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5229\u7528\u3055\u308c\u308b\u30b1\u30fc\u30b9:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u901a\u4fe1\u76f8\u624b\u304c\u975e\u5e38\u306b\u5236\u9650\u306e\u53b3\u3057\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\uff08\u4f01\u696d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306a\u3069\uff09\u306b\u3044\u308b\u5834\u5408\u3002<\/li>\n\n\n\n<li>\u4f8b: \u52d5\u753b\u901a\u8a71\u306eP2P\u63a5\u7d9a\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001TURN\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u97f3\u58f0\u3084\u6620\u50cf\u3092\u4e2d\u7d99\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f\u70b9:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>TURN\u30b5\u30fc\u30d0\u30fc\u306f\u5927\u91cf\u306e\u5e2f\u57df\u3092\u6d88\u8cbb\u3059\u308b\u305f\u3081\u3001\u904b\u7528\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc<\/strong><\/h3>\n\n\n\n<p>\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306f\u3001WebRTC\u3067\u901a\u4fe1\u3092\u958b\u59cb\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u521d\u671f\u60c5\u5831\uff08\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30c7\u30fc\u30bf\uff09\u3092\u4ea4\u63db\u3059\u308b\u5f79\u5272\u3092\u6301\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5f79\u5272:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u901a\u4fe1\u306e\u521d\u671f\u4ea4\u6e09<\/strong>\u3092\u884c\u3046\u3002<\/li>\n\n\n\n<li>WebRTC\u901a\u4fe1\u3092\u958b\u59cb\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u30d4\u30a2\u9593\u3067\u4ea4\u63db\u3059\u308b\u624b\u6bb5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4f8b\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u3092\u4ea4\u63db\u3057\u307e\u3059:\n<ul class=\"wp-block-list\">\n<li>SDP (Session Description Protocol) \u60c5\u5831: \u30e1\u30c7\u30a3\u30a2\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u5f62\u5f0f\u3001\u6697\u53f7\u5316\u60c5\u5831\u306a\u3069\u3002<\/li>\n\n\n\n<li>ICE (Interactive Connectivity Establishment) \u5019\u88dc: \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u63a5\u7d9a\u53ef\u80fd\u306aIP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u306e\u30ea\u30b9\u30c8\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u901a\u4fe1\u7d4c\u8def\u306e\u78ba\u7acb<\/strong>\u3092\u88dc\u52a9\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5229\u7528\u3055\u308c\u308b\u30b1\u30fc\u30b9:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u901a\u4fe1\u958b\u59cb\u524d\u306b\u5fc5\u8981\u306a\u521d\u671f\u60c5\u5831\u3092\u4ea4\u63db\u3059\u308b\u305f\u3081\u3001WebRTC\u306e\u901a\u4fe1\u3067\u306f\u5fc5\u9808\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f\u70b9:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u306fP2P\u901a\u4fe1\u306b\u306f\u95a2\u4e0e\u3057\u306a\u3044\u305f\u3081\u3001\u97f3\u58f0\u3084\u6620\u50cf\u30c7\u30fc\u30bf\u3092\u4e2d\u7d99\u3057\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5b9f\u88c5\u4f8b:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u4e00\u822c\u7684\u306bWebSocket\u3084HTTP\u30d9\u30fc\u30b9\u3067\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>WebRTC\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30b7\u30b0\u30ca\u30ea\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 STUN\/TURN\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2953","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2953"}],"version-history":[{"count":1,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2953\/revisions"}],"predecessor-version":[{"id":3027,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2953\/revisions\/3027"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}