Closed Bug 866900 Opened 13 years ago Closed 8 years ago

[Camera] [Docs] API docs need to be updated

Categories

(Developer Documentation Graveyard :: API: Device API, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: onecyrenus, Assigned: sheppy)

References

()

Details

The docs on startRecording are not a working example, need to be refreshed with a working code sample.
Assignee: nobody → eshepherd
Component: General → Firefox OS
Product: Boot2Gecko → Developer Documentation
function setStream(stream) { view = document.getElementById('viewfinder'); view.mozSrcObject = stream; view.play(); Camera.startRecording(config,etc..etc) } Camera.getPreviewStreamVideoMode(size, setStream()); Something like the following needs to be done first, you need to getPreviewStreamVideoMode before you can startRecording.
Assignee: eshepherd → jeremie.patonnier
Mike, as you perform the tech review for the doc, can you confirm this. Reading the Gaia and Gecko code doesn't make this obvious to me. To my understanding, the previewStream is necessary to display the current video stream at the same time as the recording, but I was not aware that the recording *required* that the previewStream has been initialized. Is it the same for the CameraControl.takePicture method? Is it required to call CameraControl.getPreviewStream before any call to CameraControl.takePicture?
Flags: needinfo?(mhabicher)
This bug has become quite aged, as have the CameraControl docs. They have grown increasingly stale as the API has evolved over the last year: for example, just looking at comment 2, getPreviewStream() doesn't even exist as a method anymore. Jeremie, are you still the person to talk to about updating the docs?
Flags: needinfo?(mhabicher) → needinfo?(jeremie.patonnier)
Mike, have you set the "dev-doc-needed" flag on bugs that changed the API? That's the standard process.
(In reply to Mike Habicher [:mikeh] from comment #3) > Jeremie, are you still the person to talk to about updating the docs? Not anymore, Sheppy takes it back :)
Assignee: jeremie.patonnier → cmills
Flags: needinfo?(jeremie.patonnier)
Assignee: cmills → eshepherd
Component: Firefox OS → API: Device API
Camera docs have been archived and won't be updated.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.