Hello,
I m working on videoconferencing part using VIDTEST from sample.
It is rendering (displaying) video on the new screen.
Instead it should be displayed on any existing screen…
So suggest me the modification
This is the part of code which is rendering video
\pwlib\samples\vidtest\main.cxx
grabber->Start();
PThread * userInterfaceThread = new UserInterfaceThread(*this);
BOOL isEncoding = TRUE;
PSDLDisplayThread * sdlThread = new PSDLDisplayThread(FALSE);
PSDLVideoDevice * display = new PSDLVideoDevice(“VideoTest”, isEncoding, sdlThread);
PINDEX width = channel->GetGrabWidth();
PINDEX height = channel->GetGrabHeight();
PINDEX bytesInFrame = (width * height * 3) >> 1;
PBYTEArray dataBuffer(bytesInFrame);
display->SetFrameSize(width, height);
display->SetColourFormatConverter(“YUV420P”);
channel->AttachVideoPlayer(display);
//This will do all the reading and writing from buffer to screen
for( ;; ) {
channel->Read(dataBuffer.GetPointer(), bytesInFrame);
channel->Write((const void *)dataBuffer, 0);
if (!exitFlag.WillBlock())
break;
}
Dispaly part is handled by SDL So is there any hwndle for window(screen)
Thanks
Chirag_____________________________________________________________