videoplayback/videohelix/inc/mpxvideoplaybackmode.h
branchRCL_3
changeset 23 8f0df5c82986
parent 21 55fa1ec415c6
child 26 67eb01668b0e
equal deleted inserted replaced
21:55fa1ec415c6 23:8f0df5c82986
    14 * Description:   This class plays files with the Helix Engine
    14 * Description:   This class plays files with the Helix Engine
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 15 %
    19 // Version : %version: 16 %
    20 
    20 
    21 
    21 
    22 #ifndef _CMPXVIDEOPLAYBACKMODE_H_
    22 #ifndef _CMPXVIDEOPLAYBACKMODE_H_
    23 #define _CMPXVIDEOPLAYBACKMODE_H_
    23 #define _CMPXVIDEOPLAYBACKMODE_H_
    24 
    24 
    35 //
    35 //
    36 //  FORWARD DECLARATIONS
    36 //  FORWARD DECLARATIONS
    37 //
    37 //
    38 class CMPXVideoPlaybackController;
    38 class CMPXVideoPlaybackController;
    39 class CMPXVideoDlMgrIf;
    39 class CMPXVideoDlMgrIf;
       
    40 class CMPXVideoPosterFrameSetter;
    40 
    41 
    41 
    42 
    42 //
    43 //
    43 //  CLASS DECLARATION
    44 //  CLASS DECLARATION
    44 //
    45 //
    69         virtual void HandleBackground();
    70         virtual void HandleBackground();
    70         virtual TBool IsNetworkMode2GL();
    71         virtual TBool IsNetworkMode2GL();
    71         virtual TBool CanPlayNow();
    72         virtual TBool CanPlayNow();
    72         virtual void OpenFileL( const TDesC& aMediaFile );
    73         virtual void OpenFileL( const TDesC& aMediaFile );
    73         virtual void OpenFileL( const RFile& aMediaFile );
    74         virtual void OpenFileL( const RFile& aMediaFile );
       
    75         virtual void HandleSetPosterFrame();
       
    76         virtual void HandleFrameReady(TInt aError);
    74 
    77 
    75 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    78 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    76         virtual void OpenFile64L( const RFile64& aMediaFile );
    79         virtual void OpenFile64L( const RFile64& aMediaFile );
    77 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    80 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    78 
    81 
    93     protected:
    96     protected:
    94         //
    97         //
    95         //  Data
    98         //  Data
    96         //
    99         //
    97         CMPXVideoPlaybackController*        iVideoPlaybackCtlr;   // not owned
   100         CMPXVideoPlaybackController*        iVideoPlaybackCtlr;   // not owned
       
   101         
       
   102         CMPXVideoPosterFrameSetter*         iPosterFrameSetter;
    98 
   103 
    99 };
   104 };
   100 
   105 
   101 /*******************************************************/
   106 /*******************************************************/
   102 /*         SUB CLASS DECLARATIONS                      */
   107 /*         SUB CLASS DECLARATIONS                      */
   111         static CMPXVideoPlaybackMode* NewL(CMPXVideoPlaybackController* aVideoPlaybackCtlr);
   116         static CMPXVideoPlaybackMode* NewL(CMPXVideoPlaybackController* aVideoPlaybackCtlr);
   112         virtual ~CMPXLocalPlaybackMode();
   117         virtual ~CMPXLocalPlaybackMode();
   113 
   118 
   114         // Methods where video plabkack behavior varies for local media
   119         // Methods where video plabkack behavior varies for local media
   115         inline virtual TInt GetMode();
   120         inline virtual TInt GetMode();
       
   121         virtual void HandleSetPosterFrame();
       
   122         virtual void HandleFrameReady(TInt aError);
   116 };
   123 };
   117 
   124 
   118 
   125 
   119 ////////////////////////////////////////////////////////
   126 ////////////////////////////////////////////////////////
   120 ///     Declaration of CMPXStreamingPlaybackMode
   127 ///     Declaration of CMPXStreamingPlaybackMode