Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
beavertail
Posts: 101
Registered: ‎09-14-2012
My Device: Playbook 16GB, 32GB, 64GB, Z10
Accepted Solution

Error.4003 in Kitchensink Camera API sample code fixed

When playing with the camera API in the Kitchensink sample code, a reproducible "Error.4003" can be generated.

 

Way to reproduce the error:

1) run takeVideo(), take a video and save the video, then

2) run takePicture()

The screen will stay black and if the shutter is hit, the Error 4003 pops up.

 

Fix:

In the camera.js file, in the onVideoCapture function, change the code from,

     video = document.createElement('video');

to,

     video = new Video();

 

Hope this help.

 

 

 

Trusted Contributor
beavertail
Posts: 101
Registered: ‎09-14-2012
My Device: Playbook 16GB, 32GB, 64GB, Z10

Re: Error.4003 in Kitchensink Camera API sample code fixed

I guess I have to answer my own post in order to make it "solved".