mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
added for plugins own dir
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97d8640f3a
commit
87344de7d4
809 changed files with 790 additions and 722 deletions
33
plugins/smplayer_plugin/testcorelib/test2.cpp
Normal file
33
plugins/smplayer_plugin/testcorelib/test2.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
|
||||
#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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue