videoplayback/videohelix/inc/mpxvideoplaybackmode.h
branchRCL_3
changeset 18 baf439b22ddd
parent 16 67eb01668b0e
equal deleted inserted replaced
16:67eb01668b0e 18:baf439b22ddd
    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: 19 %
    19 // Version : %version: 20 %
    20 
    20 
    21 
    21 
    22 #ifndef _CMPXVIDEOPLAYBACKMODE_H_
    22 #ifndef _CMPXVIDEOPLAYBACKMODE_H_
    23 #define _CMPXVIDEOPLAYBACKMODE_H_
    23 #define _CMPXVIDEOPLAYBACKMODE_H_
    24 
    24 
    27 //
    27 //
    28 #include <e32def.h>
    28 #include <e32def.h>
    29 #include <e32base.h>
    29 #include <e32base.h>
    30 
    30 
    31 #include "mpxhelixplaybackplugindefs.h"
    31 #include "mpxhelixplaybackplugindefs.h"
    32 #ifdef USE_S60_DOWNLOAD_MANAGER 
    32 #ifdef USE_S60_DOWNLOAD_MANAGER
    33 #include "mpxvideodlmgrif.h"
    33 #include "mpxvideodlmgrif.h"
    34 #endif
    34 #endif
    35 #include "mpxvideo_debug.h"
    35 #include "mpxvideo_debug.h"
    36 
    36 
    37 //
    37 //
    74         virtual TBool CanPlayNow();
    74         virtual TBool CanPlayNow();
    75         virtual void OpenFileL( const TDesC& aMediaFile );
    75         virtual void OpenFileL( const TDesC& aMediaFile );
    76         virtual void OpenFileL( const RFile& aMediaFile );
    76         virtual void OpenFileL( const RFile& aMediaFile );
    77         virtual void HandleSetPosterFrame();
    77         virtual void HandleSetPosterFrame();
    78         virtual void HandleFrameReady(TInt aError);
    78         virtual void HandleFrameReady(TInt aError);
       
    79         virtual TBool SendErrorToView( TInt aError );
       
    80         virtual void HandlePauseToPlayTransitionL();
    79 
    81 
    80 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    82 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    81         virtual void OpenFile64L( const RFile64& aMediaFile );
    83         virtual void OpenFile64L( const RFile64& aMediaFile );
    82 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    84 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    83 
    85 
   150         virtual ~CMPXLiveStreamingPlaybackMode();
   152         virtual ~CMPXLiveStreamingPlaybackMode();
   151 
   153 
   152         // Methods where video plabkack behavior varies for live streaming media
   154         // Methods where video plabkack behavior varies for live streaming media
   153         inline virtual TInt GetMode();
   155         inline virtual TInt GetMode();
   154         virtual void HandlePause();
   156         virtual void HandlePause();
   155         virtual void HandleBackground();
   157         virtual TBool SendErrorToView( TInt aError );
       
   158         virtual void HandlePauseToPlayTransitionL();
   156 };
   159 };
   157 
   160 
   158 ////////////////////////////////////////////////////////////////////////////////
   161 ////////////////////////////////////////////////////////////////////////////////
   159 //
   162 //
   160 //     Declaration of CMPXProgressiveDLPlaybackMode
   163 //     Declaration of CMPXProgressiveDLPlaybackMode
   166 {
   169 {
   167     public:
   170     public:
   168         static CMPXVideoPlaybackMode* NewL( CMPXVideoPlaybackController* aVideoPlaybackCtlr );
   171         static CMPXVideoPlaybackMode* NewL( CMPXVideoPlaybackController* aVideoPlaybackCtlr );
   169         virtual ~CMPXProgressiveDLPlaybackMode();
   172         virtual ~CMPXProgressiveDLPlaybackMode();
   170 
   173 
   171 #ifdef USE_S60_DOWNLOAD_MANAGER 
   174 #ifdef USE_S60_DOWNLOAD_MANAGER
   172 
   175 
   173         inline virtual TInt GetMode();
   176         inline virtual TInt GetMode();
   174         void ConnectToDownloadL( CMPXCommand& aCmd );
   177         void ConnectToDownloadL( CMPXCommand& aCmd );
   175         void HandleOpenComplete();
   178         void HandleOpenComplete();
   176         void GetPdlStatusL( CMPXCommand& aCmd );
   179         void GetPdlStatusL( CMPXCommand& aCmd );
   180 
   183 
   181 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   184 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   182         void OpenFile64L( const RFile64& aMediaFile );
   185         void OpenFile64L( const RFile64& aMediaFile );
   183 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   186 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   184 
   187 
   185 #endif // USE_S60_DOWNLOAD_MANAGER 
   188 #endif // USE_S60_DOWNLOAD_MANAGER
   186 
   189 
   187     private:
   190     private:
   188         void ConstructL( CMPXVideoPlaybackController* aVideoPlaybackCtlr );
   191         void ConstructL( CMPXVideoPlaybackController* aVideoPlaybackCtlr );
   189 
   192 
   190 #ifdef USE_S60_DOWNLOAD_MANAGER 
   193 #ifdef USE_S60_DOWNLOAD_MANAGER
   191     private:
   194     private:
   192         CMPXVideoDlMgrIf*  iDlMgrIf;   // owned		
   195         CMPXVideoDlMgrIf*  iDlMgrIf;   // owned
   193 #endif // USE_S60_DOWNLOAD_MANAGER 
   196 #endif // USE_S60_DOWNLOAD_MANAGER
   194 
   197 
   195 };
   198 };
   196 
   199 
   197 #ifdef USE_S60_DOWNLOAD_MANAGER 
   200 #ifdef USE_S60_DOWNLOAD_MANAGER
   198 
   201 
   199 inline
   202 inline
   200 TInt CMPXProgressiveDLPlaybackMode::GetMode()
   203 TInt CMPXProgressiveDLPlaybackMode::GetMode()
   201 {
   204 {
   202     MPX_DEBUG(_L("CMPXProgressiveDLPlaybackMode::GetMode()"));
   205     MPX_DEBUG(_L("CMPXProgressiveDLPlaybackMode::GetMode()"));
   207 TBool CMPXProgressiveDLPlaybackMode::IsDownloadPaused()
   210 TBool CMPXProgressiveDLPlaybackMode::IsDownloadPaused()
   208 {
   211 {
   209     return iDlMgrIf->IsDownloadPaused();
   212     return iDlMgrIf->IsDownloadPaused();
   210 }
   213 }
   211 
   214 
   212 #endif // USE_S60_DOWNLOAD_MANAGER 
   215 #endif // USE_S60_DOWNLOAD_MANAGER
   213 
   216 
   214 // INLINE METHODS
   217 // INLINE METHODS
   215 
   218 
   216 inline
   219 inline
   217 TInt CMPXVideoPlaybackMode::GetMode()
   220 TInt CMPXVideoPlaybackMode::GetMode()