<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Georgia">So, can we have a primitive to tell us which
flavor of a primitive it is? ;-)</font><br>
</p>
<br>
<div class="moz-cite-prefix">On 12/25/16 2:47 PM, tim Rowledge
wrote:<br>
</div>
<blockquote
cite="mid:F30A424D-259C-41C4-A183-B48BA44CA920@rowledge.org"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">On 25-12-2016, at 10:44 AM, Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net"><arning315@comcast.net></a> wrote:
Thank you for that - looks like the answer.
The CameraInterface I was testing had this:
videoTest: camNum
"A quick test of video input. Displays video on the screen until the mouse is pressed."
"self videoTest: 1"
"self videoTest: 2"
and doing the videoTest: 1 would turn on the camera light, but report that no camera was present.
Your code has
self openCamera: 0 width: 640 height: 480.
and it works fine. So zero seems to be the right camera number, at least for this version of the plugin.
</pre>
</blockquote>
<pre wrap="">
The first ‘valid’ number is supposed to be 1. Indeed the Win32 plugin explicitly fails for 0, the linux version subtracts 1 from the provided number and would fail with 0, and the RISC OS version… doesn’t exist.
In platforms/iOS/plugins/CameraPlugin/AVFoundationVideoGrabber.m it looks like the list of available devices is left 0-based and this would probably explain your problem.
tim
--
tim Rowledge; <a class="moz-txt-link-abbreviated" href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a class="moz-txt-link-freetext" href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a>
Strange OpCodes: YVR: Branch to Vancouver
</pre>
</blockquote>
<br>
</body>
</html>