<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">El 24/03/15 a las 19:18, shahsahil
      escribió:<br>
    </div>
    <blockquote cite="mid:1427221111482-4642552.post@n4.nabble.com"
      type="cite">
      <pre wrap="">It is still not working for me. I just get the black screen in cameraview.
</pre>
    </blockquote>
    <br>
    <br>
    Hi again,<br>
    <br>
    Blank screen may be no data (frames) fetched.<br>
    <br>
    For debug purposes could you change this lines of code in
    cameraserver.cpp after line 261[1]?<br>
    <br>
    while(!requests.empty()) {<br>
      std::cout &lt;&lt; ".";       /* print a dot every frame served to
    a client */<br>
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1252">
      jderobot::AMD_ImageProvider_getImageDataPtr cb = requests.front();<br>
      requests.pop_front();<br>
      cb-&gt;ice_response(reply);<br>
    }<br>
    <br>
    This will print a dot (.) every frame served to client (cameraview),
    not only every frame.<br>
    <br>
    You can do the same at client side. Add this line after line 47[2]
    in cameraview.cpp:<br>
    <br>
    jderobot::ImageDataPtr data = cprx-&gt;getImageData();<br>
    std::cout &lt;&lt; ".";       /* print a dot every frame received */<br>
    <br>
    If you can see dots in cameraserver and cameraview when black image
    is shown then the problem is the camera, probably due to USB port
    virtualizacion. If there is NOT dots (nor server, nor viewer side)
    then the problem seems to be configuration of ICE endpoints,
    firewalls or something like this.<br>
    <br>
    Have you try to boot on a ubuntu live USB? You can use a 16GB
    (better 32BG) with a complete ubuntu instalation (with USB disk
    partitions) without any risk to your current operative system
    (Windows 7/8?).<br>
    <br>
    If you are afraid about lose your windows system/data you could
    disconnect your hard drive during ubuntu live DVD to USB install (I
    don't ever try to install a patitioned USB from a live USB). If it
    is a hypervisor problem (vmware, virtualbox, xen, ect) this will
    solve the problem and you will have a native test environment better
    than virtualized one.<br>
    <br>
    Best regards.<br>
    <br>
    <br>
    [1]:
<a class="moz-txt-link-freetext" href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraserver/cameraserver.cpp#L261">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraserver/cameraserver.cpp#L261</a><br>
    [2]:
<a class="moz-txt-link-freetext" href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraview/cameraview.cpp#L47">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraview/cameraview.cpp#L47</a><br>
  </body>
</html>