本文整理汇总了C++中IPlayer::setOutWindow方法的典型用法代码示例。如果您正苦于以下问题:C++ IPlayer::setOutWindow方法的具体用法?C++ IPlayer::setOutWindow怎么用?C++ IPlayer::setOutWindow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPlayer
的用法示例。
在下文中一共展示了IPlayer::setOutWindow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: startPresentation
//.........这里部分代码省略.........
createStreamTypeSectionFilter(
STREAM_TYPE_DSMCC_TYPE_B, (IDemuxer*)demuxer);
::usleep((int)(ocDelay * 1000));
}
#if HAVE_COMPSUPPORT
mavFilter = ((filterCreator*)(cm->getObject("PipeFilter")))(0);
#else
mavFilter = new PipeFilter(0);
#endif
//mavFilter->addDestination(1);
((IDemuxer*)demuxer)->addPesFilter(PFT_DEFAULTTS, mavFilter);
// Create Main AV
cout << "lssm-ccm::sp creating av player" << endl;
#if HAVE_COMPSUPPORT
mv = ((PlayerCreator*)(cm->getObject("AVPlayer")))(
mrlv.c_str(), true);
//ma = ((PlayerCreator*)(cm->getObject("AVPlayer")))(
// mrla.c_str(), false);
#else
mv = new AVPlayer(mrlv.c_str(), true);
//ma = new AVPlayer(mrla.c_str(), true);
#endif
//ma->setOutWindow(NULL);
mv->setOutWindow(wmv);
cout << "lssm-ccp::sp create av ok" << endl;
vPid = ((IDemuxer*)demuxer)->getDefaultMainVideoPid();
aPid = ((IDemuxer*)demuxer)->getDefaultMainAudioPid();
((IDemuxer*)demuxer)->waitBuffers();
while (smv == NULL) {
smv = mv->getSurface();
::usleep(100000);
}
ni = ((ITuner*)tuner)->getCurrentInterface();
if (ni != NULL && ni->getCaps() & DPC_CAN_DECODESTC) {
cout << "lssm-ccp::sp using stc hardware!" << endl;
((IDataProcessor*)dataProcessor)->setSTCProvider(ni);
} else {
cout << "lssm-ccp::sp using stc wrapper!" << endl;
sw = new StcWrapper(mv);
((IDataProcessor*)dataProcessor)->setSTCProvider(sw);
}
nptProvider = ((IDataProcessor*)dataProcessor)->getNPTProvider();
if (nptProvider != NULL) {
pem->setTimeBaseProvider((ITimeBaseProvider*)nptProvider);
}
/*((IDataProcessor*)dataProcessor)->
createStreamTypeSectionFilter(
STREAM_TYPE_DSMCC_TYPE_C, (IDemuxer*)demuxer);*/