Cover flow4fxos
-
Upload
takashi-yasukawa -
Category
Documents
-
view
336 -
download
0
Transcript of Cover flow4fxos
どうやって実現しようか
CSS3のTransformとPerspective
perspective(200px) rotateY(45deg)
単位のつけ忘れに注意
degreeなのでπ /ネタができない。
悔しい。
http://goo.gl/sxKC6Q
ここで詰まる
Videoを呼び出すのに、メディア関係のディレクトリにアクセスする必要があった。(アプリのsandbox無いは無理?)
権限が必要 "type": "privileged",
"permissions": {
"device-storage:videos" : {
"access" : "readonly"
}
}
http://goo.gl/sxKC6Q
検索ポインタ的なもの var videos = navigator.getDeviceStorage('videos'); var cursor = videos.enumerate(); var count = 0; cursor.onsuccess = function () { if (this.result) { appendLine = '<tr class="medialine"><td class="mediadata">'+count+'</td><td class="mediadata">'+this.result.name+'</td><td class="mediadata">'+this.result.lastModifiedDate+'</td></tr>'; var thumb = document.createElement("video"); if( thumb.canPlayType(this.result.type) ){ thumb.controls = true; thumb.src = URL.createObjectURL(this.result); thumb.preload = "true"; thumb.autoplay = "true"; thumb.loop = "true"; thumb.classList.add("thumbnaildata_img"); var div = document.createElement("div"); div.classList.add("thumbnaildata"); div.id = "thumb"+count; div.appendChild(thumb); $("#thumbnail").append(div); $("#medialist").append(appendLine); maxsize = count++; } // 次のエントリを取得する this.continue(); } }
http://goo.gl/sxKC6Q