{"id":8265,"date":"2020-01-22T10:00:19","date_gmt":"2020-01-22T01:00:19","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=8265"},"modified":"2020-01-22T10:50:24","modified_gmt":"2020-01-22T01:50:24","slug":"webxr%e3%82%92%e4%be%bf%e5%88%a9%e3%81%ab%e4%bd%9c%e3%82%8c%e3%82%8ba-frame%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/8265","title":{"rendered":"WebXR\u3092\u4fbf\u5229\u306b\u4f5c\u308c\u308bA-Frame\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002"},"content":{"rendered":"\n<p>\u6628\u5e74\u306e12\u6708\u306bVer1.0.0\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f<a href=\"https:\/\/aframe.io\/\">A-Frame<\/a>\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>360\u5ea6\u52d5\u753b\u3067\u3042\u308c\u307040\u884c\u7a0b\u5ea6\u3002<br>Body\u8981\u7d20\u5185\u3060\u3051\u306a\u3089\u3001\u305f\u3063\u305f\u306e6\u884c\u7a0b\u5ea6\u3067\u5b9f\u73fe\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4ee5\u4e0b\u5b9f\u969b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html>\n\n&lt;head>\n    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    &lt;meta charset=\"utf-8\">\n    &lt;title>&lt;\/title>\n    &lt;meta name=\"description\" content=\"\">\n    &lt;meta name=\"author\" content=\"\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    &lt;meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n    &lt;link rel=\"stylesheet\" href=\"\">\n    &lt;link rel=\"shortcut icon\" href=\"\">\n\n    &lt;!-- CDN\u7d4c\u7531\u3067A-Frame\u3092\u8aad\u307f\u8fbc\u307f -->\n    &lt;script src=\"https:\/\/aframe.io\/releases\/1.0.3\/aframe.min.js\">&lt;\/script>\n&lt;\/head>\n\n&lt;body>\n    &lt;!-- \u63cf\u753b\u3059\u308b\u30b7\u30fc\u30f3 -->\n    &lt;a-scene>\n        &lt;!-- A-Frame\u3067\u5229\u7528\u3059\u308b\u30a2\u30bb\u30c3\u30c8 -->\n        &lt;a-assets>\n            &lt;video id=\"video\" src=\"\u518d\u751f\u3059\u308b\u52d5\u753b\u306e\u30d1\u30b9\" \n            preload=\"auto\" muted loop=\"false\" webkit-playsinline playsinline>&lt;\/video>\n        &lt;\/a-assets>\n        &lt;!-- \u5b9f\u969b\u306bVR\u3067\u8868\u793a\u3055\u308c\u308b\u30e2\u30c7\u30eb\u5185\u5074\u306b\u6307\u5b9a\u30ea\u30bd\u30fc\u30b9\u3092\u8868\u793a\u3059\u308b\u7403\u4f53\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 -->\n        &lt;a-videosphere id=\"videosphere\" src='#video'>&lt;\/a-videosphere>\n    &lt;\/a-scene>\n&lt;\/body>\n\n&lt;!-- \u4ee5\u4e0b\u306fVR\u958b\u59cb\u30dc\u30bf\u30f3\u3067\u52d5\u753b\u3092\u518d\u751f\u3059\u308b\u305f\u3081\u306eJavascript -->\n&lt;script>\n    var scene = document.querySelector(\"a-scene\");\n        var video = document.getElementById(\"video\");\n\n        if (scene.hasLoaded) {\n            run();\n        } else {\n            scene.addEventListener(\"loaded\", playvideo);\n        }\n\n        function playvideo() {\n            scene.querySelector(\".a-enter-vr-button\").addEventListener(\"click\", function (e) {\n                video.play();\n            }, false);\n        }\n&lt;\/script>\n\n&lt;\/html><\/code><\/pre>\n\n\n\n<p>\u30b3\u30fc\u30c9\u5185\u3067\u884c\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3068\u3066\u3082\u7c21\u5358\u3067<\/p>\n\n\n\n<p>a-assets\u30bf\u30b0\u5185\u306b\u8868\u793a\u3057\u305f\u3044 video\u30ea\u30bd\u30fc\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u3001<br>a-scene\u306b\u8868\u793a\u3059\u308ba-videosphere\u30bf\u30b0\u306e\u30bd\u30fc\u30b9\u306b <br>a-assets\u30bf\u30b0\u5185\u3067\u8a2d\u5b9a\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u306eID\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308b\u3053\u3068\u3067<br>a-videosphere \u306bvideo\u30ea\u30bd\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067<br>WEB\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u52d5\u304f\u30de\u30fc\u30ab\u30fcAR\u3082\u4f5c\u308c\u308b\u3088\u3046\u3067\u3059\u3002<br><\/p>\n\n\n\n<p>\u6c34\u66dc\u62c5\u5f53\uff1aTanaka<\/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\/8265\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/8265\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"WebXR\u3092\u4fbf\u5229\u306b\u4f5c\u308c\u308bA-Frame\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\" 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\/8265\" data-text=\"WebXR\u3092\u4fbf\u5229\u306b\u4f5c\u308c\u308bA-Frame\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\" 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\/8265\" 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\/8265\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5e74\u306e12\u6708\u306bVer1.0.0\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fA-Frame\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 360\u5ea6\u52d5\u753b\u3067\u3042\u308c\u307040\u884c\u7a0b\u5ea6\u3002Body\u8981\u7d20\u5185\u3060\u3051\u306a\u3089\u3001\u305f\u3063\u305f\u306e6\u884c\u7a0b\u5ea6\u3067\u5b9f\u73fe\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[84],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8265"}],"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=8265"}],"version-history":[{"count":9,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8265\/revisions"}],"predecessor-version":[{"id":8275,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8265\/revisions\/8275"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=8265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=8265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=8265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}