|
1 /* |
|
2 * Copyright (c) 2008 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: LiveComm Videotelephony's Remte Video Player |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "clcvtremotevideoplayer.h" |
|
19 // ----------------------------------------------------------------------------- |
|
20 // |
|
21 // ----------------------------------------------------------------------------- |
|
22 // |
|
23 CLcVtRemoteVideoPlayer* CLcVtRemoteVideoPlayer::NewL( |
|
24 CLcVtSession* avtSession, |
|
25 MLcAudioControl& aLcAudioControl ) |
|
26 { |
|
27 CLcVtRemoteVideoPlayer* self = |
|
28 new( ELeave ) CLcVtRemoteVideoPlayer( avtSession, aLcAudioControl ); |
|
29 CleanupStack::PushL( self ); |
|
30 self->ConstructL(); |
|
31 CleanupStack::Pop( self ); |
|
32 return self; |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 CLcVtRemoteVideoPlayer::CLcVtRemoteVideoPlayer( |
|
40 CLcVtSession* avtSession, |
|
41 MLcAudioControl& aLcAudioControl ) : |
|
42 CLcVtVideoPlayerBase( avtSession, aLcAudioControl ) |
|
43 { |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 void CLcVtRemoteVideoPlayer::ConstructL() |
|
51 { |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 CLcVtRemoteVideoPlayer::~CLcVtRemoteVideoPlayer() |
|
59 { |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // From MLcVideoPlayer |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 MLcVideoPlayer::TLcVideoPlayerState |
|
67 CLcVtRemoteVideoPlayer::LcVideoPlayerState() const |
|
68 { |
|
69 TLcVideoPlayerState playerState = MLcVideoPlayer::EPlaying; |
|
70 return playerState; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // From MLcVideoPlayer |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 TBool CLcVtRemoteVideoPlayer::LcIsPlayingL() |
|
78 { |
|
79 return ETrue; |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // From MLcWindow |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 void CLcVtRemoteVideoPlayer::SetLcWindowRectL( TRect aRect ) |
|
87 { |
|
88 __VTPRINT2( DEBUG_MEDIA , " RemoteVideoPlayer.RMRect.iTl.iX: %d", aRect.iTl.iX ) |
|
89 __VTPRINT2( DEBUG_MEDIA , " RemoteVideoPlayer.RMRect.iTl.iY: %d", aRect.iTl.iY ) |
|
90 __VTPRINT2( DEBUG_MEDIA , " RemoteVideoPlayer.RMRect.iWidth: %d", aRect.Width() ) |
|
91 __VTPRINT2( DEBUG_MEDIA , " RemoteVideoPlayer.RMRect.iHeight: %d", aRect.Height() ) |
|
92 |
|
93 CLcVtVideoPlayerBase::SetLcWindowRectL( aRect ); |
|
94 } |
|
95 |