|
30
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
3 |
* All rights reserved.
|
|
|
4 |
* This component and the accompanying materials are made available
|
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
|
6 |
* which accompanies this distribution, and is available
|
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
8 |
*
|
|
|
9 |
* Initial Contributors:
|
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
|
11 |
*
|
|
|
12 |
* Contributors:
|
|
|
13 |
*
|
|
|
14 |
* Description: Implementation of VideoServicePlay
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
#include <videoservices.h>
|
|
|
20 |
#include "videoserviceplay.h"
|
|
|
21 |
#include "videoplayerengine.h"
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
VideoServicePlay::VideoServicePlay( VideoServices* parent, QVideoPlayerEngine* engine )
|
|
|
25 |
: XQServiceProvider(QLatin1String("com.nokia.Videos.IVideoView"), parent),
|
|
|
26 |
mEngine(engine),
|
|
|
27 |
mServiceApp(parent)
|
|
|
28 |
{
|
|
|
29 |
publishAll();
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
VideoServicePlay::~VideoServicePlay()
|
|
|
33 |
{
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
void VideoServicePlay::setEngine( QVideoPlayerEngine* engine )
|
|
|
37 |
{
|
|
|
38 |
mEngine = engine;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
void VideoServicePlay::playMedia( QString filePath )
|
|
|
42 |
{
|
|
|
43 |
if(mEngine)
|
|
|
44 |
{
|
|
|
45 |
mServiceApp->setCurrentService(VideoServices::EPlayback);
|
|
|
46 |
mEngine->playMedia( filePath );
|
|
|
47 |
}
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
void VideoServicePlay::playPDLMedia( QString filePath, int downloadID )
|
|
|
51 |
{
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
void VideoServicePlay::closePlayer()
|
|
|
55 |
{
|
|
|
56 |
}
|
|
|
57 |
|