ãæ¬ç¨¿ã§ä½æããã«ã¡ã©ã¢ããªã®ãµã³ãã«ã¯ãGitHubã«ã¦å ¬éãã¦ãã¾ãã
ä½æãããµã³ãã«ã¢ããª
ãæ¬ç¨¿ã§ã¯ãHTML5ã¨ãFirefox OSã®Camera APIãå©ç¨ãã¦ãç°¡åãªã¨ãã§ã¯ãã¤ãã®ã«ã¡ã©ã¢ããªãä½æãã¾ãã
ãä»åä½æããã«ã¡ã©ã¢ããªã¯ä¸ç»é¢ã®ã·ã³ãã«ãªã¢ããªã§ããæ®å½±ãã¿ã³ã®ã»ããå·¦å³ã®åæ¿ãã¿ã³ã«ãã£ã¦ãæ§ã ãªã¨ãã§ã¯ããæ½ããç»åãæ®å½±ã§ãã¾ããä¸ã®ç»åã¯ãã¢ããªä¸ã§ã¨ãã§ã¯ããªããã¨ã³ãã¹å å·¥ãã»ãã¢é¢¨ã®ã¨ãã§ã¯ãããããã表示ãããã®ã§ãã
ãã«ã¡ã©ã¢ããªã®åæ©è½ã¯ãããã以ä¸ã®APIãå©ç¨ãã¾ãã
æ©è½ | APIå称 | ç°¡åãªå®è£ æ¹é |
---|---|---|
ã«ã¡ã©ã«ã¢ã¯ã»ã¹ãã | CameraManager | CameraManager.getCamera() ãå©ç¨ããã«ã¡ã©ã«ã¢ã¯ã»ã¹ãã¾ã |
ã«ã¡ã©ãæä½ãã | CameraControl | CameraControlã®åã¡ã½ããã§ããã©ã¼ã«ã¹ãæ®å½±ç»åã®åå¾ãå¶å¾¡ãã¾ã |
ã«ã¡ã©ã®ããã¤ã¹æ å ±ãå¾ã | CameraCapabilities | ããã¤ã¹ã«ãã£ã¦ç°ãªãã«ã¡ã©ã®æ å ±ã¯ããããåå¾ãã¾ã |
ã«ã¡ã©ã®æ åã«ã¨ãã§ã¯ããã¤ãã | CameraControl.effect | CameraCapabilities.effectsã§åå¾ã§ããã¨ãã§ã¯ããæå®ãããã¨ã§ãã»ãã¢ãã¨ã³ãã¹ãªã©ã®ç»åå¹æãã¤ãã¾ã |
æ®å½±ããåçãã¹ãã¬ã¼ã¸ã«ä¿åãã | DeviceStorage | æ®å½±ããåçã¯ãããã¤ã¹ã®åçãã©ã«ãã«æ ¼ç´ãã¾ã |
Firefox OSã®ã¢ããªã®ç¨®é¡
ãFirefox OSã®ã¢ããªã«ã¯ã大ããåãã¦ãWebããé ä¿¡ããããã¹ãåã¢ããªã¨ãããã¤ã¹ã«ã¤ã³ã¹ãã¼ã«ãããããã±ã¼ã¸åã¢ããªãããã¾ããä»åä½æããã«ã¡ã©ã¢ããªã¯ããã±ã¼ã¸åã¢ããªã§ãã
ãããã±ã¼ã¸åã¢ããªã¯ã権éã«ãã£ã¦ããã«ä»¥ä¸ã®3種é¡ã«åãããå©ç¨ã§ããAPIãç°ãªãã¾ãã詳ããã¯ãããã¥ã¡ã³ãã®ããã±ã¼ã¸åã¢ããªã®ãã¼ã¸ãã覧ãã ããã
ç¹æ¨©ã¢ããªï¼Privileged Appï¼
ãç¹æ¨©ã¢ããªã¯ãç¹å¥ãªã¬ãã¥ã¼ããã»ã¹ãçµã¦Firefox Marketplaceã«ããæ¿èªãããã¢ããªã§ããã¢ããªã¯Firefox Marketplaceã«å¯©æ»ããããã¸ã¿ã«ç½²åãããããã¨ã§ãããã¤ã¹ã®éè¦ãªAPIãå©ç¨ãããã¨ãã§ããããã«ãªãã¾ãã
èªå®ã¢ããªï¼Certified Appï¼
ãèªå®ã¢ããªã¯ãé»è©±ãã·ã¹ãã è¨å®ãªã©ãFirefox OS端æ«ä¸ã®éè¦ãªæ©è½ã«ä½¿ç¨ããããã®ã§ããAPIãã¦ã¼ã¶ã®æ示çãªæ¿èªãªãå©ç¨ã§ãã¾ãããOEMãããã¯ãã£ãªã¢ã«ãã£ã¦ç«¯æ«ãã¨ã«æ¿èªãããå¿ è¦ããããã»ã¨ãã©ã®ã¢ããªéçºè ã¯èªå®ã¢ããªãé å¸ãããã¨ãã§ãã¾ããã
åç´ãªããã±ã¼ã¸åã¢ããªï¼Plain Packaged Appï¼
ãåã«ã²ã¨ã¤ã®ZIPãã¡ã¤ã«ã«ããã±ã¼ã¸ããé常ã®ã¢ããªã§ããç¹å¥ãªèªè¨¼ããã»ã¹ããªã代ããã«éè¦ãªAPIã¯å©ç¨ã§ãã¾ãããã¢ããªãã¤ã³ã¹ãã¼ã«ããç´å¾ã®ç¶æ ã§ãã¢ããªã®ãªã½ã¼ã¹ãå ¨ã¦ç«¯æ«ä¸ã§å©ç¨å¯è½ã«ãã¦ããããå ´åã«ä¾¿å©ã§ãã
ãã¾ããWebIDEã§ã¯ä»¥ä¸ã®ããã«ãããããã®æ¨©éã«è¨±å¯ãããAPIã®ãã¼ãã«ã確èªãããã¨ãã§ãã¾ããããã¤ã¹ãæ¥ç¶ããç¶æ ã§ãå³ä¸ã®ããã¤ã¹é¸æã¡ãã¥ã¼ããï¼»Permissions Tableï¼½ãé¸æãã¾ãã
Firefox OSã§å©ç¨ã§ããã«ã¡ã©é¢é£API
ãFirefox OSã§ã«ã¡ã©ã«ã¢ã¯ã»ã¹ããããã®APIã«ã¯ã以ä¸ã®3種é¡ãããã¾ãã
APIå | 対å¿ãã¼ã¸ã§ã³ | å¿ è¦æ¨©é |
---|---|---|
Web Activities | v1.0.1ä»¥ä¸ | ç¹æ¨©ï¼Privilegedï¼ |
Media Capture API | v1.4ä»¥ä¸ | Webï¼Hostedï¼ |
Camera API | v2.0ä»¥ä¸ | ç¹æ¨©ï¼Privilegedï¼ |
ãWeb Activitiesã¯ãAndroidã§ããã¤ã³ãã³ãã®ãããªæ©è½ã§ããã¢ããªããä»ã®ã¢ããªãå¼ã³åºããã¨ãã§ããæ©è½ã§ãããOSæ¨æºã®ã«ã¡ã©ãªã©ãWeb Activitiesã«å¯¾å¿ããã«ã¡ã©ã¢ããªãå¼ã³åºããçµæã®ç»åãåå¾ãããã¨ãã§ãã¾ããä»ã®ã«ã¡ã©ã¢ããªãå¼ã³åºãã ããªã®ã§ãã«ã¡ã©UIã®å¤æ´ã¯ã§ãã¾ããã
ãMedia Capture APIã¯ãW3Cã§æ¨æºåãé²ãããã¦ããAPIã§ãï¼2015å¹´2æã®ç¾æç¹ã§ã¯ãèæ¡ã®æ®µéã§ãï¼ãgetUserMediaã使ããã¨ã§ãã¢ããªå ã§ã«ã¡ã©ã®æ åã½ã¼ã¹ã«ã¢ã¯ã»ã¹ãããã¨ãã§ãã¾ããæ¨æºAPIã¨ãã£ã¦ããã©ã¦ã¶ã§ãå©ç¨ãããã¨ãã§ããã®ã§ã触ãããã¨ã®ããæ¹ãå¤ãããããã¾ãããã¾ãããã®APIã¯ç¹æ¨©ã®æ¨©éãå¿ è¦ãªãããããã¹ãåã®ã¢ããªã§ãå©ç¨ã§ãã¾ãã
ãCamera APIã¯ãã«ã¡ã©ã管çããããã®Firefox OSç¬èªã®APIã§ããFirefox OS 2.0以åã¯ãèªå®ã¢ããªã§ã®ã¿å©ç¨ã§ããAPIã§ãããã2.0ããç¹æ¨©ã¢ããªã§ãå©ç¨ã§ããããã«ãªãã¾ãããã«ã¡ã©ã®æ åãåå¾ããã ãã§ãªãããºã¼ã ããã©ã¼ã«ã¹ãæå®ãããããã©ãã·ã¥ãå©ç¨ãããã¨ãã£ãè±å¯ãªæ©è½ãå©ç¨ãããã¨ãã§ãã¾ãã