What is "zero based index of the camera source"

Get help using Construct 2

Post » Tue Sep 01, 2015 2:15 pm

With User Media, I want to make a camera app for android which able switch camera front or Back.
I dont know how can i do it using camera. Please help me....

NB: I Think its related to "zero based index of the camera source" on Camera request.
B
6
S
1
Posts: 62
Reputation: 524

Post » Tue Sep 01, 2015 2:18 pm

"Zero based" means that 0 is the starting number instead of 1. In most computer-related stuff, you start counting with 0 (it doesn't mean "nothing", it is simply the first available number). So 0, 1, 2, 3, 4, 5 instead of 1, 2, 3, 4, 5, 6.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Tue Sep 01, 2015 2:41 pm

C-7 wrote:"Zero based" means that 0 is the starting number instead of 1. In most computer-related stuff, you start counting with 0 (it doesn't mean "nothing", it is simply the first available number). So 0, 1, 2, 3, 4, 5 instead of 1, 2, 3, 4, 5, 6.

Thanks for your easy explanation. Then how can i switch front and back camera using it?
@C-7
B
6
S
1
Posts: 62
Reputation: 524

Post » Tue Sep 01, 2015 3:49 pm

I haven't tried to use a camera, but I assume one camera is at index 0 and the other is index 1.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, FabianB, Google [Bot] and 37 guests