| Line | |
|---|
| 1 |
|
|---|
| 2 | #include "smplayercorelib.h"
|
|---|
| 3 | #include "global.h"
|
|---|
| 4 | #include "helper.h"
|
|---|
| 5 | #include "preferences.h"
|
|---|
| 6 |
|
|---|
| 7 | #include <QApplication>
|
|---|
| 8 |
|
|---|
| 9 | int main( int argc, char ** argv ) {
|
|---|
| 10 | QApplication a( argc, argv );
|
|---|
| 11 | a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
|
|---|
| 12 |
|
|---|
| 13 | Helper::setAppPath( qApp->applicationDirPath() );
|
|---|
| 14 | Global::global_init();
|
|---|
| 15 |
|
|---|
| 16 | Global::pref->vo = "x11";
|
|---|
| 17 |
|
|---|
| 18 | SmplayerCoreLib * player1 = new SmplayerCoreLib;
|
|---|
| 19 | player1->mplayerWindow()->show();
|
|---|
| 20 | player1->mplayerWindow()->resize(624,352);
|
|---|
| 21 | player1->core()->openFile("video1.avi");
|
|---|
| 22 |
|
|---|
| 23 | SmplayerCoreLib * player2 = new SmplayerCoreLib;
|
|---|
| 24 |
|
|---|
| 25 | player2->mplayerWindow()->show();
|
|---|
| 26 | player2->mplayerWindow()->resize(624,352);
|
|---|
| 27 | player2->core()->openFile("video2.avi");
|
|---|
| 28 |
|
|---|
| 29 | int r = a.exec();
|
|---|
| 30 | Global::global_end();
|
|---|
| 31 |
|
|---|
| 32 | return r;
|
|---|
| 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.