2007-09-23 14:50:37 UTC
previous
next
#include "network.h"
namespace Media
{
class VideoStream : public Network::Stream
{
public:
VideoStream();
}
class VideoPlayer : public Gui::VideoPlayer
{
public:
static boost::shared_ptr<Gui::VideoPlayer> create();
private:
VideoStream vs;
}
boost::shared_ptr<Gui::VideoPlayer> VideoPlayer::create()
{
return boost::shared_ptr<Gui::VideoPlayer>(new Gui::VideoPlayer());
}
}
void __attribute__ ((constructor)) init_module(void)
{
Gui::manager().register_object(&VideoPlayer::create);
}