videoplayback/inc/mpxvideobaseplaybackview.h
branchRCL_3
changeset 12 7f2b2a65da29
parent 11 8970fbd719ec
child 14 55fa1ec415c6
equal deleted inserted replaced
11:8970fbd719ec 12:7f2b2a65da29
    14 * Description:  MPX Video base playback view
    14 * Description:  MPX Video base playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 19 %
    19 // Version : %version: 21 %
    20 
    20 
    21 
    21 
    22 // This file defines the API for VideoBasePlaybackView.dll
    22 // This file defines the API for VideoBasePlaybackView.dll
    23 
    23 
    24 #ifndef __VIDEOBASEPLAYBACKVIEW_H__
    24 #ifndef __VIDEOBASEPLAYBACKVIEW_H__
   206                                  TBool /*aComplete*/,
   206                                  TBool /*aComplete*/,
   207                                  TInt /*aError*/ ) {}
   207                                  TInt /*aError*/ ) {}
   208 
   208 
   209         inline void HandleOpenL( const CMPXCollectionPlaylist& /*aPlaylist*/, TInt /*aError*/ ) {}
   209         inline void HandleOpenL( const CMPXCollectionPlaylist& /*aPlaylist*/, TInt /*aError*/ ) {}
   210 
   210 
   211         /*
       
   212          *  Handle actions when the surface is being removed
       
   213          */
       
   214         void RemoveBackgroundSurfaceL();
       
   215 
       
   216     public:
   211     public:
   217         /**
   212         /**
   218         * Set property
   213         * Set property
   219         */
   214         */
   220         void SetPropertyL( TMPXPlaybackProperty aProperty, TInt aValue );
   215         void SetPropertyL( TMPXPlaybackProperty aProperty, TInt aValue );
   232 
   227 
   233         /*
   228         /*
   234          *  Handle transition to the stopped state
   229          *  Handle transition to the stopped state
   235          */
   230          */
   236         virtual void HandleStoppedStateL() = 0;
   231         virtual void HandleStoppedStateL() = 0;
       
   232 
       
   233         virtual void HandleInitializingStateL( TMPXPlaybackState aLastState ) = 0;
   237 
   234 
   238         virtual void HandlePluginErrorL( TInt aError );
   235         virtual void HandlePluginErrorL( TInt aError );
   239 
   236 
   240         virtual void ClosePlaybackViewL();
   237         virtual void ClosePlaybackViewL();
   241 
   238 
   244         virtual void IssuePlayCommandL();
   241         virtual void IssuePlayCommandL();
   245 
   242 
   246         void InitializeVideoPlaybackViewL();
   243         void InitializeVideoPlaybackViewL();
   247         void DisplayInfoMessageL( TInt aResourceId, TBool aWaitingDialog = EFalse );
   244         void DisplayInfoMessageL( TInt aResourceId, TBool aWaitingDialog = EFalse );
   248         void DisplayErrorMessageL( TInt aResourceId );
   245         void DisplayErrorMessageL( TInt aResourceId );
   249 
       
   250 
   246 
   251         CMPXVideoBasePlaybackView();
   247         CMPXVideoBasePlaybackView();
   252 
   248 
   253         /*
   249         /*
   254          *  Activates an active object to close the player
   250          *  Activates an active object to close the player
   285 
   281 
   286         TBool IsAppInFrontL();
   282         TBool IsAppInFrontL();
   287 
   283 
   288         TInt RetrieveBufferingPercentageL();
   284         TInt RetrieveBufferingPercentageL();
   289 
   285 
       
   286         void DoHandleInitializingStateL( TMPXPlaybackState aLastState );
       
   287 
       
   288         TBool IsMultiItemPlaylist();
       
   289 
   290     private:
   290     private:
   291 
   291 
   292         /**
   292         /**
   293         *  Handle playback message
   293         *  Handle playback message
   294         *
   294         *
   306         void SetDisplayWindowL();
   306         void SetDisplayWindowL();
   307 
   307 
   308         void CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd );
   308         void CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd );
   309 
   309 
   310         void SetVideoRectL();
   310         void SetVideoRectL();
   311 
       
   312 
   311 
   313         void DisplayFileDetailsDialogL();
   312         void DisplayFileDetailsDialogL();
   314 
   313 
   315         /**
   314         /**
   316         *  Handle media properties.
   315         *  Handle media properties.
   345         TInt AddDllPath( TDes& aFileName );
   344         TInt AddDllPath( TDes& aFileName );
   346 
   345 
   347         void ShowFileDetailsDialogL();
   346         void ShowFileDetailsDialogL();
   348 
   347 
   349         void HandleDrmErrorsL( TInt aError );
   348         void HandleDrmErrorsL( TInt aError );
   350         TBool IsMultiItemPlaylist();
   349 
   351         TInt OpenDrmFileHandleL( RFile& aFile );
   350         TInt OpenDrmFileHandleL( RFile& aFile );
   352         void LaunchDRMDetailsL();
   351         void LaunchDRMDetailsL();
   353 
   352 
   354         void HandleRealOneBitmapTimeoutL();
   353         void HandleRealOneBitmapTimeoutL();
   355 
   354 
   356         void SendWindowCommandL( TMPXVideoPlaybackCommand aCmd );
   355         void SendWindowCommandL( TMPXVideoPlaybackCommand aCmd );
       
   356 
       
   357         TBool IsInMemoryPlugin();
   357 
   358 
   358 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   359 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   359         TInt OpenDrmFileHandle64L( RFile64& aFile );
   360         TInt OpenDrmFileHandle64L( RFile64& aFile );
   360 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   361 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   361 
   362 
   380         TBool                               iPlaylistView;
   381         TBool                               iPlaylistView;
   381         TBool                               iCollectionMediaRequested;
   382         TBool                               iCollectionMediaRequested;
   382         TBool                               iPdlReloading;
   383         TBool                               iPdlReloading;
   383         TBool                               iRealOneDelayedPlay;
   384         TBool                               iRealOneDelayedPlay;
   384         TBool                               iKeyboardInFocus;
   385         TBool                               iKeyboardInFocus;
   385 
       
   386         HBufC*                              iClipName;
       
   387 };
   386 };
   388 
   387 
   389 #endif  // __VIDEOBASEPLAYBACKVIEW_H__
   388 #endif  // __VIDEOBASEPLAYBACKVIEW_H__
   390 
   389 
   391 // EOF
   390 // EOF