{"id":6835,"date":"2019-01-16T10:00:29","date_gmt":"2019-01-16T01:00:29","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=6835"},"modified":"2019-02-05T18:19:12","modified_gmt":"2019-02-05T09:19:12","slug":"%e6%96%b0%e4%ba%ba%e6%97%a5%e8%aa%8c","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/6835","title":{"rendered":"\u65b0\u4eba\u65e5\u8a8c"},"content":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u5148\u90311\u67087\u65e5\u306b\u5165\u793e\u3057\u305fTanaka\u3068\u7533\u3057\u307e\u3059\u3002<\/p>\n<p>\u7814\u4fee\u3067Android\u4e0a\u306e\u30ab\u30e1\u30e9\u304b\u3089\u6620\u50cf\u3092\u53d6\u5f97\u3057\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4fdd\u5b58\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>Google Open Source\u306e\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u3057\u3001Camera2 Api\u3092\u4f7f\u3044\u30ab\u30e1\u30e9\u304b\u3089\u6620\u50cf\u3092\u53d6\u5f97\u3057\u3001<\/p>\n<p>MediaRecorder\u3067\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u304a\u304a\u307e\u304b\u306a\u51e6\u7406\u306e\u6d41\u308c\u306f\u8aad\u307f\u53d6\u308c\u305f\u306e\u3067\u3059\u304c\u3001\u5fc5\u8981\u306a\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u627f\u8a8d\u8981\u6c42\u3067\u3064\u307e\u3065\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>AndroidManifest\u306b\u5fc5\u8981\u306a\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3(\u4eca\u56de\u306f\u64ae\u5f71\u7528\u306eCAMERA\u3001\u5185\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u306e\u66f8\u304d\u8fbc\u307f\u7528\u306eWRITE_EXTERNAL_STORAGE)\u3092\u66f8\u304d\u3001<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308b\u3068\u3053\u308d\u3067<\/p>\n<pre>requestPermissions(\"\u3053\u3053\u306b\u5fc5\u8981\u306a\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\")\r\n<\/pre>\n<p>\u3067\u30e6\u30fc\u30b6\u30fc\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u627f\u8a8d\u3092\u8981\u6c42\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3055\u3066\u3001\u7121\u4e8b\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u627f\u8a8d\u8981\u6c42\u304c\u3067\u304d\u305f\u306e\u3067\u4fdd\u5b58\u3057\u3066\u3044\u3053\u3046\u3002<\/p>\n<p>\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u5ea6\u306f\u66f8\u304d\u51fa\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3067\u3064\u307e\u3065\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u53c2\u8003\u306b\u3057\u305f\u30b3\u30fc\u30c9\u3067\u306f<\/p>\n<pre>getExternalFilesDir(null)\r\n<\/pre>\n<p>\u3068\u3042\u308a\u3001\u30a2\u30d7\u30ea\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u30a2\u30af\u30bb\u30b9\u304c\u9762\u5012\u3067\u3059\u3002\u306a\u306e\u3067<\/p>\n<pre>getExternalStoragePublicDirectory(DIRECTORY_MOVIES)<\/pre>\n<p>\u3068\u3057\u3066\u5185\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306eMOVIES\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u308b\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<p>\u3053\u308c\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4fdd\u5b58\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c0\u3001\u4fdd\u5b58\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>MediaRecorder.stop()\u3067\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>MediaRecorder\u306esurface\u306b<\/p>\n<pre>createCaptureRequest(TEMPLATE_RECORD)<\/pre>\n<p>\u3067\u30ec\u30b3\u30fc\u30c9\u7528\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u3053\u3068\u3092\u5fd8\u308c\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u7121\u4e8b\u306b\u76ee\u7684\u306e\u52d5\u304d\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3060\u307e\u3060\u7406\u89e3\u304c\u8db3\u308a\u3066\u3044\u306a\u3044\u90e8\u5206\u3082\u3042\u308a\u307e\u3059\u304c\u53c2\u8003\u306b\u3057\u305f\u30b3\u30fc\u30c9\u3092\u3082\u3068\u306b\u52c9\u5f37\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Tanaka<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6835\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/6835\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u65e5\u8a8c\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6835\" data-text=\"\u65b0\u4eba\u65e5\u8a8c\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6835\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6835\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u5148\u90311\u67087\u65e5\u306b\u5165\u793e\u3057\u305fTanaka\u3068\u7533\u3057\u307e\u3059\u3002 \u7814\u4fee\u3067Android\u4e0a\u306e\u30ab\u30e1\u30e9\u304b\u3089\u6620\u50cf\u3092\u53d6\u5f97\u3057\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4fdd\u5b58\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6835"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=6835"}],"version-history":[{"count":6,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6835\/revisions"}],"predecessor-version":[{"id":6842,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6835\/revisions\/6842"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=6835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=6835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=6835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}