14 #include <boost/bind.hpp>
15 #include <ctkPluginContext.h>
30 mPluginContext(pluginContext),
33 this->initServiceListener();
36 void VideoServiceProxy::initServiceListener()
40 boost::bind(&VideoServiceProxy::onVideoServiceAdded,
this, _1),
42 boost::bind(&VideoServiceProxy::onVideoServiceRemoved,
this, _1)
44 mVideoServiceListener->open();
47 void VideoServiceProxy::onVideoServiceAdded(VideoService* service)
49 mVideoService.reset(service, null_deleter());
59 void VideoServiceProxy::onVideoServiceRemoved(VideoService *service)
74 return mVideoService->isNull();
79 return mVideoService->getStreamerService(uid);
84 return mVideoService->getStreamerServices();
89 mVideoService->setActiveVideoSource(uid);
94 return mVideoService->getActiveVideoSource();
99 return mVideoService->getVideoSources();
104 mVideoService->setConnectionMethod(connectionMethod);
109 return mVideoService->getConnectionMethod();
114 mVideoService->openConnection();
119 mVideoService->closeConnection();
124 return mVideoService->isConnected();
129 mVideoService->setPlaybackMode(controller);
134 return mVideoService->getPlaybackEvents();