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)
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.
Updated•13 years ago
|
Assignee: nobody → eshepherd
Component: General → Firefox OS
Product: Boot2Gecko → Developer Documentation
| Reporter | ||
Comment 1•13 years ago
|
||
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.
Updated•13 years ago
|
Assignee: eshepherd → jeremie.patonnier
Comment 2•13 years ago
|
||
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)
Comment 3•11 years ago
|
||
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)
Comment 4•11 years ago
|
||
Mike, have you set the "dev-doc-needed" flag on bugs that changed the API? That's the standard process.
Comment 5•11 years ago
|
||
(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)
Updated•11 years ago
|
Assignee: cmills → eshepherd
Component: Firefox OS → API: Device API
Comment 6•8 years ago
|
||
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.
Description
•