13 * |
13 * |
14 * Description: Implementation of VideoServicePlay |
14 * Description: Implementation of VideoServicePlay |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 // Version : %version: % |
18 |
19 |
19 #include <videoservices.h> |
20 #include "videoservices.h" |
20 #include "videoserviceplay.h" |
21 #include "videoserviceplay.h" |
21 #include "videoplayerengine.h" |
22 #include "videoplayerengine.h" |
|
23 #include "mpxvideo_debug.h" |
22 |
24 |
23 |
25 |
|
26 // ------------------------------------------------------------------------------------------------- |
|
27 // VideoServicePlay() |
|
28 // ------------------------------------------------------------------------------------------------- |
|
29 // |
24 VideoServicePlay::VideoServicePlay( VideoServices* parent, QVideoPlayerEngine* engine ) |
30 VideoServicePlay::VideoServicePlay( VideoServices* parent, QVideoPlayerEngine* engine ) |
25 : XQServiceProvider(QLatin1String("com.nokia.Videos.IVideoView"), parent), |
31 : XQServiceProvider( QLatin1String("com.nokia.Videos.IVideoView"), parent ) |
26 mEngine(engine), |
32 , mEngine( engine ) |
27 mServiceApp(parent) |
33 , mServiceApp( parent ) |
28 { |
34 { |
|
35 MPX_ENTER_EXIT(_L("VideoServicePlay::VideoServicePlay()")); |
29 publishAll(); |
36 publishAll(); |
30 } |
37 } |
31 |
38 |
|
39 // ------------------------------------------------------------------------------------------------- |
|
40 // ~VideoServicePlay() |
|
41 // ------------------------------------------------------------------------------------------------- |
|
42 // |
32 VideoServicePlay::~VideoServicePlay() |
43 VideoServicePlay::~VideoServicePlay() |
33 { |
44 { |
|
45 MPX_DEBUG(_L("VideoServicePlay::~VideoServicePlay()")); |
34 } |
46 } |
35 |
47 |
|
48 // ------------------------------------------------------------------------------------------------- |
|
49 // setEngine() |
|
50 // ------------------------------------------------------------------------------------------------- |
|
51 // |
36 void VideoServicePlay::setEngine( QVideoPlayerEngine* engine ) |
52 void VideoServicePlay::setEngine( QVideoPlayerEngine* engine ) |
37 { |
53 { |
38 mEngine = engine; |
54 MPX_DEBUG(_L("VideoServicePlay::setEngine()")); |
|
55 mEngine = engine; |
39 } |
56 } |
40 |
57 |
|
58 // ------------------------------------------------------------------------------------------------- |
|
59 // playMedia() |
|
60 // ------------------------------------------------------------------------------------------------- |
|
61 // |
41 void VideoServicePlay::playMedia( QString filePath ) |
62 void VideoServicePlay::playMedia( QString filePath ) |
42 { |
63 { |
43 if(mEngine) |
64 MPX_ENTER_EXIT(_L("VideoServicePlay::playMedia()"), |
|
65 _L("filePath = %s"), filePath.data() ); |
|
66 |
|
67 if ( mEngine ) |
44 { |
68 { |
45 mServiceApp->setCurrentService(VideoServices::EPlayback); |
69 mServiceApp->setCurrentService( VideoServices::EPlayback ); |
46 mEngine->playMedia( filePath ); |
70 mEngine->playMedia( filePath ); |
47 } |
71 } |
48 } |
72 } |
49 |
73 |
|
74 // ------------------------------------------------------------------------------------------------- |
|
75 // playPDLMedia() |
|
76 // ------------------------------------------------------------------------------------------------- |
|
77 // |
50 void VideoServicePlay::playPDLMedia( QString filePath, int downloadID ) |
78 void VideoServicePlay::playPDLMedia( QString filePath, int downloadID ) |
51 { |
79 { |
|
80 MPX_DEBUG(_L("VideoServicePlay::playPDLMedia()")); |
|
81 Q_UNUSED( filePath ); |
|
82 Q_UNUSED( downloadID ); |
52 } |
83 } |
53 |
84 |
|
85 // ------------------------------------------------------------------------------------------------- |
|
86 // closePlayer() |
|
87 // ------------------------------------------------------------------------------------------------- |
|
88 // |
54 void VideoServicePlay::closePlayer() |
89 void VideoServicePlay::closePlayer() |
55 { |
90 { |
|
91 MPX_DEBUG(_L("VideoServicePlay::closePlayer()")); |
56 } |
92 } |
57 |
93 |