-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.cpp
23 lines (23 loc) · 1.01 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <QtCore/QCoreApplication>
#include "playercontroller/aiplayerpluginengine.h"
#include "playercontroller/mpxplaybackutility.h"
#include "playercallback.h"
#include "mpxplaybackcommanddefs.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
//we will get player events here
playerCallBack* cb=new playerCallBack();
//create controller instance for video player
//you can pass CAiPlayerPluginEngine::EAudioPlayer to control audio player
CAiPlayerPluginEngine* playerController=CAiPlayerPluginEngine::NewL(*cb,CAiPlayerPluginEngine::EVideoPlayer);
//set volume for it
// check TMPXPlaybackProperty at mpxplaybackframeworkdefs.h for more options
playerController->getUtility()->SetL(EPbPropertyVolume,99);
// let's pause playback
//check TMPXPlaybackCommand at mpxplaybackcommanddefs.h for more options
playerController->getUtility()->CommandL(EPbCmdPause);
User::After(1000000); // just wait
delete playerController;
return 0;
}