{"id":849,"date":"2015-06-03T12:02:33","date_gmt":"2015-06-03T03:02:33","guid":{"rendered":"https:\/\/eguchi.jp\/blog\/?p=849"},"modified":"2015-06-03T12:02:33","modified_gmt":"2015-06-03T03:02:33","slug":"webrtc%e3%82%92-android%e3%83%8d%e3%82%a4%e3%83%86%e3%82%a3%e3%83%96%e3%82%a2%e3%83%97%e3%83%aa%e3%81%ab%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/eguchi.jp\/blog\/?p=849","title":{"rendered":"WebRTC\u3092 Android\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u306b\u5b9f\u88c5\u3059\u308b"},"content":{"rendered":"<p>\u30ef\u30a4\u30e4\u30ec\u30b9\u30b8\u30e3\u30d1\u30f32015\u3067\u3001\u300e\u30e1\u30a4\u30c9\u3055\u3093\u306e\u5410\u606f\u3092\u5730\u7403\u306e\u88cf\u5074\u306b\u8ee2\u9001\u3059\u308b\u300f\u306a\u3093\u3066\u30bf\u30a4\u30c8\u30eb\u3067\u767a\u8868\u3057\u3066\u3001\u8a18\u4e8b\u300e<a href=\"http:\/\/www.itmedia.co.jp\/mobile\/articles\/1505\/28\/news115.html\" target=\"_blank\">\u30e1\u30a4\u30c9\u3055\u3093\u306e\u5410\u606f\u3092\u611f\u3058\u3066\u3001\u30bf\u30c3\u30c1\u2015\u2015\u300c\u65e5\u672cAndroid\u306e\u4f1a\u300d\u79cb\u8449\u539f\u652f\u90e8\u30bb\u30c3\u30b7\u30e7\u30f3<\/a>\u300f\u306b\u3057\u3066\u3044\u305f\u3060\u3044\u305f\u3002<\/p>\n<p>\u79c1\u304c\u4f5c\u6210\u3057\u305f\u30c7\u30d0\u30a4\u30b9\u300e\u30bd\u30fc\u30b7\u30e3\u30eb\u3046\u3061\u308f\u300f\u306f\u3001\uff11\u5bfe\u591a\u306e\u901a\u4fe1\u3092\u884c\u3046\u306e\u3067\u3001WebSocket\u3092\u63a1\u7528\u3057\u3066\u3044\u305f\u304c\u3001\u30a2\u30af\u30bb\u30b5\u30ea\u90e8\u306e\u30e1\u30f3\u30d0\u30fc\u304c\u4f5c\u6210\u3057\u305f\u5410\u606f\u3092\u4f1d\u9001\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u306f\uff11\u5bfe\uff11\u306e\u901a\u4fe1\u3067\u3042\u308b\u305f\u3081\u3001WebRTC\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u3002<br \/>\n\u81ea\u5206\u304c\u4f5c\u3063\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u306f\u5fc5\u305a\u3057\u3082\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u30b5\u30fc\u30d0\u7d4c\u7531\u3067\u901a\u4fe1\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u3001Android\u306e\u30a2\u30d7\u30ea\u306bWebRTC\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u6027\u3082\u3042\u308b\u306e\u3067\u3001\u5b9f\u88c5\u65b9\u6cd5\u3092\u8abf\u67fb\u3057\u3066\u3044\u305f\u3002\u5b9f\u969b\u3084\u3063\u3066\u307f\u308b\u3068\u3001\u82e6\u96e3\u306e\u9023\u7d9a\u3060\u3063\u305f\u306e\u3067\u3001\u3053\u3053\u306b\u899a\u66f8\u3092\u793a\u3059\u3002<\/p>\n<p>Google\u3067\u5b9f\u88c5\u65b9\u6cd5\u3092\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u3001<a href=\"http:\/\/www.webrtc.org\/\" target=\"_blank\">WebRTC\u306e\u516c\u5f0f\u30da\u30fc\u30b8<\/a>\u306b\u30b5\u30f3\u30d7\u30eb\u304c\u3042\u308b\u306e\u3067\u3053\u308c\u3092\u30d9\u30fc\u30b9\u306b\u3084\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u30b5\u30f3\u30d7\u30eb\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u3001\u5b9f\u6a5f\u3067\u52d5\u304f\u307e\u3067\u3092\u3084\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u307e\u305a\u3001\u8e93\u3044\u305f\u3053\u3068\u3092\u5148\u306b\u66f8\u304f\u3068\u3001Max OSX Yosemite\u4e0a\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\u3002<br \/>\n\u306a\u306e\u3067\u3001<a href=\"http:\/\/qiita.com\/tonofo\/items\/c60088e9829e9881d981\" target=\"_blank\">WebRTC\u306aAndroid\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066<\/a>\u306b\u66f8\u3044\u3066\u3042\u308b\u3088\u3046\u306b\u3001Linux\u4e0a\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u81ea\u5206\u304c\u5b9f\u969b\u306b\u3084\u3063\u305f\u74b0\u5883\u306e\u3054\u7d39\u4ecb<\/p>\n<p>Mac Book Air (2013 Mid)<br \/>\nOS X Yosemite(10.10.3)<br \/>\nParalleses Desktop\u4e0a\u3067\u3001Ubuntu 14.04.2 LTS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u5f8c\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7acb\u3061\u4e0a\u3052\u305f\u72b6\u614b\u304b\u3089\u3001\u3084\u3063\u305f\u3053\u3068\u3092\u66f8\u3044\u3066\u307f\u308b\u3002\uff08\u30e1\u30e2\u30ea\u30fc\u306f2GB\u3092\u5272\u308a\u5f53\u3066\u307e\u3057\u305f\uff09<\/p>\n<p>\u307e\u305a\u306f\u3001\u304a\u7d04\u675f\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<br \/>\n<code><br \/>\nsudo apt-get update<br \/>\nsudo apt-get upgrade<br \/>\n<\/code><\/p>\n<p>\u30d3\u30eb\u30c9\u3059\u308b\u969b\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<br \/>\n<code><br \/>\nsudo apt-get install git subversion openjdk-7-jdk<br \/>\nexport JAVA_HOME=\/usr\/lib\/jvm\/java-7-openjdk-amd64<br \/>\n<\/code><\/p>\n<p>\u307f\u305f\u3044\u306a\u3093\u3067\u3059\u304c\u3001\u9014\u4e2d\u3067\u3001c++\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u30fc\u304c\u5fc5\u8981\u306a\u306e\u3067<br \/>\n<code><br \/>\nsudo apt-get install g++<br \/>\n<\/code><\/p>\n<p>\u3092\u3084\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u306f<br \/>\n<code><br \/>\ngit clone https:\/\/chromium.googlesource.com\/chromium\/tools\/depot_tools.git<br \/>\nexport PATH=`pwd`\/depot_tools:\"$PATH\"<br \/>\nexport GYP_DEFINES=\"OS=android\"<br \/>\nfetch webrtc_android<br \/>\n<\/code><\/p>\n<p>\u3067\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4f5c\u696d\u306f\u3081\u3063\u3061\u3083\u6642\u9593\uff08\uff11\u6642\u9593\u4ee5\u4e0a\uff09\u304c\u304b\u304b\u308a\u307e\u3059\u306e\u3067\u3002\u5fcd\u8010\u5f37\u304f\u5f85\u3061\u307e\u3057\u3087\u3046\u3002\u9014\u4e2d\u3067\u6b62\u3081\u305f\u308a(Ctrl+C)\u3057\u305f\u5834\u5408\u306f\u3001<br \/>\n<code><br \/>\ngclient sync<br \/>\n<\/code><\/p>\n<p>\u3067\u3001\u518d\u958b\u3055\u305b\u307e\u3057\u3087\u3046\u3002<br \/>\n<code><br \/>\ncd src<br \/>\n. build\/android\/envsetup.sh<br \/>\nexport GYP_DEFINES=\"build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 enable_android_opensl=0 $GYP_DEFINES\"<br \/>\ngclient runhooks<br \/>\n<\/code><\/p>\n<p>\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u3088\u304f\u3042\u308b\u624b\u6bb5\u3092\u3084\u308b\u3068\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u9014\u4e2d\u3067\u6b62\u307e\u308b\u306e\u3067\u3001\u305d\u306e\u524d\u306b\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n<code><br \/>\n.\/build\/install-build-deps-android.sh<br \/>\n<\/code><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u5fcd\u8005\u3092\u547c\u3073\u307e\u3057\u3087\u3046<br \/>\n<code><br \/>\nninja -C out\/Release -j2 AppRTCDemo<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<br \/>\n\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u306eapk\u30d5\u30a1\u30a4\u30eb\u306f\u3001\/src\/out\/Release\/AppRTCDemo.apk\u304b\u3089\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u308c\u3092\u3001OSX\u4e0a\u306b\u6301\u3063\u3066\u304d\u3066\u3001\u5b9f\u6a5f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n2015\/06\/02\u73fe\u5728\u3067\u3001apk\u3067\u304d\u305f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\uff01<\/p>\n<p>\u3054\u53c2\u8003\u307e\u3067\u306b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ef\u30a4\u30e4\u30ec\u30b9\u30b8\u30e3\u30d1\u30f32015\u3067\u3001\u300e\u30e1\u30a4\u30c9\u3055\u3093\u306e\u5410\u606f\u3092\u5730\u7403\u306e\u88cf\u5074\u306b\u8ee2\u9001\u3059\u308b\u300f\u306a\u3093\u3066\u30bf\u30a4\u30c8\u30eb\u3067\u767a\u8868\u3057\u3066\u3001\u8a18\u4e8b\u300e\u30e1\u30a4\u30c9\u3055\u3093\u306e\u5410\u606f\u3092\u611f\u3058\u3066\u3001\u30bf\u30c3\u30c1\u2015\u2015\u300c\u65e5\u672cAndroid\u306e\u4f1a\u300d\u79cb\u8449\u539f\u652f\u90e8\u30bb\u30c3\u30b7\u30e7\u30f3\u300f\u306b\u3057\u3066\u3044\u305f\u3060\u3044\u305f\u3002 \u79c1\u304c\u4f5c\u6210\u3057\u305f &hellip; <a href=\"https:\/\/eguchi.jp\/blog\/?p=849\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">WebRTC\u3092 Android\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u306b\u5b9f\u88c5\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-849","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=849"}],"version-history":[{"count":9,"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions"}],"predecessor-version":[{"id":858,"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions\/858"}],"wp:attachment":[{"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eguchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}