RetroShare/plugins/smplayer_plugin/testcorelib/test2.cpp
defnax 87344de7d4 added for plugins own dir
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-28 14:21:11 +00:00

34 lines
769 B
C++

#include "smplayercorelib.h"
#include "global.h"
#include "helper.h"
#include "preferences.h"
#include <QApplication>
int main( int argc, char ** argv ) {
QApplication a( argc, argv );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
Helper::setAppPath( qApp->applicationDirPath() );
Global::global_init();
Global::pref->vo = "x11";
SmplayerCoreLib * player1 = new SmplayerCoreLib;
player1->mplayerWindow()->show();
player1->mplayerWindow()->resize(624,352);
player1->core()->openFile("video1.avi");
SmplayerCoreLib * player2 = new SmplayerCoreLib;
player2->mplayerWindow()->show();
player2->mplayerWindow()->resize(624,352);
player2->core()->openFile("video2.avi");
int r = a.exec();
Global::global_end();
return r;
}