Media/getUserMedia

From MozillaWiki
< Media
Revision as of 19:26, 6 May 2012 by Anant (talk | contribs) (Created page with "= getUserMedia Implementation Roadmap = == Goal == * Implement the getUserMedia specification on 3 platforms: Desktop, Android and B2G. * Includes the following uses of getUser...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getUserMedia Implementation Roadmap

Goal

  • Implement the getUserMedia specification on 3 platforms: Desktop, Android and B2G.
  • Includes the following uses of getUserMedia:
  getUserMedia({picture:true}, onsuccess(Blob blob), onerror);
  getUserMedia({video:true,audio:true}, onsuccess(MediaStream stream), onerror);
  video.src = stream;
  audio.src = stream;
  • Appropriate permission, notification and status UIs.

Phase 1

  • Define common abstraction "MediaEngine" for device access across multiple platforms.
  • Implement a fallback backend for MediaEngine (when hardware support not available, returnMediaStream with white noise, for example).
  • Write DOM bindings for getUserMedia (backed with Fallback MediaEngine).

Phase 2

  • Implement MediaEngine backends:
    • Android: bug ??? (either based on Android NDK/SDK, or, webrtc.org code).
    • B2G: bug ??? [Fabrice] (based on Gonk).
    • Desktop: bug 691234 [Anant] (based on webrtc.org code).

Phase 3

  • Implement permissions, notification & status UI
    • Android: bug ???
    • B2G: bug ???
    • Desktop: bug 729522 [???]

Once UI lands, getUserMedia may be pref'ed on.

Phase 4 and beyond

  • Implement file backend for MediaEngine.
  • Refactor getUserMedia{picture:true} implementations to use MediaEngine + privileged MediaStreams and CameraControl APIs.