<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=ridTitle>Blank</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #808080; FONT-FAMILY: Verdana
}
P.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>
<META content="MSHTML 6.00.6000.17098" name=GENERATOR></HEAD>
<BODY id=ridBody style="FONT-SIZE: 10pt; COLOR: #808080; FONT-FAMILY: Verdana"
background=cid:125520112@05082011-0990>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011>Hi Guys,</SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011>I'm hoping you can help
me.</SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011>I am writing a medical
video application for live surgical examinations, eg for endoscopies or
laparoscopies. </SPAN></FONT><FONT color=#3a3a3a><SPAN
class=125520112-05082011>The application is written in wxPerl which uses an
API called wxMediaCtrl as a GStreamer front end.</SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011>The C++ code is shown
here:</SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011><A
href="http://read.pudn.com/downloads69/sourcecode/embed/247385/wxWidgets-2.8.0/src/unix/mediactrl.cpp__.htm">http://read.pudn.com/downloads69/sourcecode/embed/247385/wxWidgets-2.8.0/src/unix/mediactrl.cpp__.htm</A></SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011></SPAN></FONT><FONT
color=#3a3a3a><SPAN class=125520112-05082011></SPAN></FONT><FONT
color=#3a3a3a><SPAN class=125520112-05082011></SPAN></FONT><FONT
color=#3a3a3a><SPAN class=125520112-05082011>While the video playback from a
file works fine, the functionality for playing a webcam
(wxGStreamerMediaBackend::Load (URI version)) does not. It seems that the webcam
is opened/loaded but no image appears. If I use a valid webcam name, I get
no reaction, but if I use an invalid webcam name the application crashes.
I am trying to track the API calls through mediactrl.cpp which starts with this
call, but should there be the equivalent of "play" for a
webcam?</SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011>Does anyone have or can
you point me to a piece of Linux c++ code that plays a Linux webcam (eg <A
href="file:///dev/video0">file:///dev/video0</A>)?</SPAN></FONT></P>
<P><FONT color=#3a3a3a><SPAN class=125520112-05082011>Any code or other advice
would be much appreciated</P></SPAN></FONT>
<P><FONT color=#3a3a3a><SPAN
class=125520112-05082011></SPAN>Regards<BR><BR>Steve</FONT></P>
<DIV><FONT color=#000000></FONT> </DIV></BODY></HTML>