HTML5åå¿è åãããã«ã½ã³ã«åå ãã¾ãã
html5-developers-jp主å¬ã®ãHTML5ハッカソンã«åå ãã¦æ¥ã¾ããã
å§ãã¦ã®ããã«ã½ã³ã§ã¨ã¦ãç·å¼µãã¦ãã¾ããããä¼å ´å
¨ä½ãæµããã¹ãã¼ãæã¨åå è
ã®äººéã®é«ãã¢ããã¼ã·ã§ã³ã«åºæ¿ãåããä¸äººã§ãã£ããä½ãã®ã¨ã¯ã¾ãéãä½é¨ããããã¨ãåºæ¥ã¾ãããæ©ä¼ãããã°ãæ¯é次åãåå ãããã¨æãã¾ãã
ä»åã¯ä½äººãã§ãã¼ã ãçµã¿ãããããã決ãããã¼ãã§å¥½ããªãã®ãä½ãã¾ãããæå¾ã«åªç§è ãåå è å ¨å¡ã®æ票ã§æ±ºããã®ã§ããã»ã»ã»ãã¿ãã¨åªåãããã¨ãåºæ¥ã¾ãããä¸æ³ï¼ï¼
èªåéã¯ãåç»ãã¬ã¤ã¤ã¼ãã¼ã ãã§ãlocalStorageã使ã£ã¦åç»ã®ä»»æã®ãã¬ã¼ã ã§ã®ç»é¢ãã£ããã£ãé åºããå®ç¾ãã¾ããã
â» Chrome, Safari対å¿ã§ãã
- Captureãã¿ã³ãæ¼ãã¨ãåç»ã®ãã£ããã£ãã
- ãã£ããã£æéãã¯ãªãã¯ããã¨ããã®æéã«åç»ãé åºã
- ãã©ã¦ã¶ãéãã¦ãããã£ããã£ããç»åã¯æ®ã£ã¦ãã(use localStorage)
å®éã«åããã¢ã¯ã³ãã©ã - Local Movie Player
å®ç¾æ¹æ³ã¨ãã¦ã¯ã
- videoãcanvasã«ãã£ããã£ã¼
- ãã£ããã£ããç»åãbase64 encodeãã¦localStorageã«ä¿å
- ãªãã¼ãæãlocalStorageã«ä¿åããåç»ãcanvasã«åæç»
ã¨ãã£ãæãã§ãã
ãã¼ã ã§ã¢ã¤ãã¢ãåºãåã£ã¦ãããã¨ãåæ ããããã¹ã¿ããã®çããã®ç確ãªå©è¨ãç¡ããã°çãæéã§ã¨ã¦ãããã¾ã§ã¯åºæ¥ãªãã£ãã§ããã¨ã¦ã楽ããä¸æ¥ã§ãããããã«ã½ã³ãåå ãããã¨ç¡ã人ã¯ããããã§ããã¼ã
ã½ã¼ã¹ã³ã¼ãã¯ã³ãã©ã ongaeshi/LocalMoviePlayer - GitHub
ãã¾ããä¸è¨ä»¥å¤ã§åå¼·ã«ãªã£ããã¨
- Macã¦ã¼ã¶ã¼å¤ã(åå è ã®80%以ä¸)
- localStorageã«JavaScriptã®ãã¼ã¿(é åãããã·ã¥)ãæ ¼ç´ãåãåºãã¯ãJSON.stringify, JSON.parse ã§ç°¡åã«åºæ¥ã(æ¬å½ã«ç°¡åã»ã»)
- JQuery便å©ããã(使ãæ¹æãã¦ããã£ããããããããã¨ãç°¡åã«åºæ¥ããããgetElementByIdã¨ããããããªã)
- W3Schools Online Web Tutorials - æãã¦ããã£ãJQueryã®ãã¥ã¼ããªã¢ã«ããªãã¡ã¬ã³ã¹ã®ãã¼ã¸
- èªåã®ãã¼ããã½ã³ã³ã¯ããã¸ã§ã¯ã¿åºåæ©è½ãç¡ãã»ã»ã»ã»ã»å¤æããã¬ã¼ã³ã®ã¿ã¤ãã³ã°ã§çºè¦(æ±)
è²ã ãªäººã®ããæ¹ãè¦ããã®ã¯ããã§ããã