videoplayback/videohelix/inc/mpxvideohelixplayback.h
branchRCL_3
changeset 9 5294c000a26d
parent 0 96612d01cf9f
equal deleted inserted replaced
8:ce5ada96ab30 9:5294c000a26d
    13 *
    13 *
    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 // Version : %version: 8 %
    18 // Version : %version: 10 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #ifndef _CMPXVIDEOHELIXPLAYBACK_H_
    22 #ifndef _CMPXVIDEOHELIXPLAYBACK_H_
    23 #define _CMPXVIDEOHELIXPLAYBACK_H_
    23 #define _CMPXVIDEOHELIXPLAYBACK_H_
   160         *
   160         *
   161         * @since S60 9.2
   161         * @since S60 9.2
   162         * @param aUri URI of the item
   162         * @param aUri URI of the item
   163         * @param aType the mime type of the item
   163         * @param aType the mime type of the item
   164         * @param aAccessPoint the access point
   164         * @param aAccessPoint the access point
   165         */
   165         * @param aPosition the starting position
   166         void InitStreamingL(const TDesC& aUri, const TDesC8& aType, TInt aAccessPoint);
   166         */
       
   167         void InitStreamingL(const TDesC& aUri, const TDesC8& aType, TInt aAccessPoint, TInt aPosition); 
   167 
   168 
   168         /**
   169         /**
   169         * Initializes a file handle for playback.
   170         * Initializes a file handle for playback.
   170         *
   171         *
   171         * @since S60 9.2
   172         * @since S60 9.2
   172         * @param aFile file handle of a file
   173         * @param aFile file handle of a file
   173         * @param aAccessPoint the access point
   174         * @param aAccessPoint the access point
   174         */
   175         * @param aPosition the starting position
   175         void InitStreamingL(RFile& aFile, TInt aAccessPoint);
   176         */
       
   177         void InitStreamingL(RFile& aFile, TInt aAccessPoint, TInt aPosition);  
   176 
   178 
   177         /**
   179         /**
   178         * Initializes filename and handle
   180         * Initializes filename and handle
   179         *
   181         *
   180         * @since S60 9.2
   182         * @since S60 9.2
   181         * @param aUri URI of the item
   183         * @param aUri URI of the item
   182         */
   184         */
   183         RFile& OpenFileHandleL( const TDesC& aUri );
   185         RFile& OpenFileHandleL( const TDesC& aUri );
   184         
   186 
   185         /**
   187         /**
   186         * Open file handle
   188         * Open file handle
   187         *
   189         *
   188         * @since S60 9.2
   190         * @since S60 9.2
   189         * @param aUri URI of the item
   191         * @param aUri URI of the item
   190         * @param aFile a 32-bit file handle
   192         * @param aFile a 32-bit file handle
   191         */
   193         */
   192         void OpenFileHandleL( const TDesC& aUri, RFile& aFile );
   194         void OpenFileHandleL( const TDesC& aUri, RFile& aFile );
   193 
   195 
   194         /**
   196         /**
   195         * Handle open file handle
   197         *  Checks if the Uri is a streaming link
   196         *
   198         *
   197         * @since S60 9.2
   199         * @since S60 9.2
   198         * @param aError open file error
   200         * @param aUri URL or file name
   199         */
   201         */
   200         void HandleOpenFileHandleL( TInt aError );
   202         void CheckForStreamingUrlL( const TDesC& aUri );
   201         
   203 
   202 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   204 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   203 
   205 
   204         /*
   206         /*
   205          *  Initializes a song for playback
   207          *  Initializes a song for playback
   206          *  @param aFile RFile64 of a song
   208          *  @param aFile RFile64 of a song
   207          */
   209          *  @param aPosition the starting position
   208         void Initialise64L( RFile64& aFile );
   210          */
       
   211         void Initialise64L( RFile64& aFile, TInt aPosition ); 
   209 
   212 
   210         /**
   213         /**
   211         * Initializes a file handle for playback.
   214         * Initializes a file handle for playback.
   212         *
   215         *
   213         * @since S60 9.2
   216         * @since S60 9.2
   214         * @param aFile RFile64 of a file
   217         * @param aFile RFile64 of a file
   215         * @param aAccessPoint the access point
   218         * @param aAccessPoint the access point
   216         */
   219         * @param aPosition the starting position
   217         void InitStreaming64L(RFile64& aFile, TInt aAccessPoint);
   220         */
       
   221         void InitStreaming64L( RFile64& aFile, TInt aAccessPoint, TInt aPosition ); 
   218 
   222 
   219         /**
   223         /**
   220         * Initializes filename and handle
   224         * Initializes filename and handle
   221         *
   225         *
   222         * @since S60 9.2
   226         * @since S60 9.2
   230         * @since S60 9.2
   234         * @since S60 9.2
   231         * @param aUri URI of the item
   235         * @param aUri URI of the item
   232         * @param aFile a 64-bit file handle
   236         * @param aFile a 64-bit file handle
   233         */
   237         */
   234         void OpenFileHandle64L( const TDesC& aUri, RFile64& aFile );
   238         void OpenFileHandle64L( const TDesC& aUri, RFile64& aFile );
   235         
   239 
   236 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API        
   240 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
   241 
       
   242 
       
   243         /*
       
   244         *  Initializes a clip for playback
       
   245         *  @since S60 9.2
       
   246         *  
       
   247         *  @param aSong the song path, 
       
   248         *  @param aPosition the starting position 
       
   249         */
       
   250         void InitialiseWithPositionL( const TDesC& aSong, TInt aPosition = 0 );     
       
   251                 
       
   252         /**
       
   253         * Initializes a song for playback.
       
   254         *
       
   255         * @since S60 9.2
       
   256         * @param aFile file handle of a song
       
   257         * @param aPosition the starting position
       
   258         */
       
   259         void InitialiseWithPositionL(RFile& aSong, TInt aPosition = 0 );        
   237 
   260 
   238 
   261 
   239     private:
   262     private:
   240         /*
   263         /*
   241          *  C++ default constructor
   264          *  C++ default constructor
   245         /*
   268         /*
   246          *  the second phase constructor ConstructL to safely construct things
   269          *  the second phase constructor ConstructL to safely construct things
   247          *  that can leave
   270          *  that can leave
   248          */
   271          */
   249         void ConstructL();
   272         void ConstructL();
   250         
   273 
   251     private:
   274     private:
   252         //
   275         //
   253         //  Data
   276         //  Data
   254         //
   277         //
   255     	CMPXVideoPlaybackController*  iVideoPlaybackCtlr;
   278     	CMPXVideoPlaybackController*  iVideoPlaybackCtlr;