Media/getUserMedia: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 40: Line 40:


== Phase 2 ==
== Phase 2 ==
* Define "chrome" extensions to MediaStreams for privileged JS code (and B2G's) use. This includes CameraControl features .
** Android and Desktop: bug(s) to be created
* Implement MediaEngine backends:
* Implement MediaEngine backends:
** Android: bug ??? (either based on Android NDK/SDK, or, webrtc.org code).
** Android: bug ??? (either based on Android NDK/SDK, or, webrtc.org code).
Line 46: Line 49:
* Implement image capture {picture:true} API
* Implement image capture {picture:true} API
** Desktop: {{bug|749887}} [???]
** Desktop: {{bug|749887}} [???]
*** ({{bug|692955}} tracking <input> on Desktop, reuse possible. {{bug|748835}} tracking UI).  
*** ({{bug|692955}} tracking <input> on Desktop, reuse possible. {{bug|748835}} tracking UI).


== Phase 3 ==
== Phase 3 ==

Revision as of 00:35, 31 May 2012

getUserMedia Implementation Roadmap

Goal

  • Prioritize B2G work for Q2
  • 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).
  • Implement MediaEngine backend for B2G: bug 740997 [Fabrice] (based on Gonk)

Phase 2

  • Define "chrome" extensions to MediaStreams for privileged JS code (and B2G's) use. This includes CameraControl features .
    • Android and Desktop: bug(s) to be created
  • Implement MediaEngine backends:
    • Android: bug ??? (either based on Android NDK/SDK, or, webrtc.org code).
    • Desktop: bug 691234 [Anant] (based on webrtc.org code).
  • Implement image capture {picture:true} API

Phase 3

  • Implement permissions, notification & status UI

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.