⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mplayeruicontrollerlistener.h

📁 symbian s60 有关音频的代码实例,供参考
💻 H
字号:
/*
* ============================================================================
*  Name     : MPlayerUIControllerListener from MPlayerUIControllerListener.h
*  Part of  : Video Example
*  Created  : 30/08/2006 by Forum  Nokia
*  Implementation notes:
*  Version  : 2.0
*  Copyright: Nokia Corporation, 2006
* ============================================================================
*/

#ifndef __MPLAYERUICONTROLLERLISTENER_H__
#define __MPLAYERUICONTROLLERLISTENER_H__

const TInt KMPOneSecond(1000000);
const TInt KMPOneMinute(60000000);
const TInt KOneHourInSeconds(3600);

// UI controller commands
enum TMPControlCommands
    {
    EMPControlCmdPlay,
    EMPControlCmdPause,
    EMPControlCmdStop,
    EMPControlCmdStartSeekForward,
    EMPControlCmdStartSeekBackward,
    EMPControlCmdStopSeeking,
    EMPControlCmdVolumeUpByOne,
    EMPControlCmdVolumeDownByOne,
    EMPControlCmdVolumeMute,
    EMPControlCmdVolumeUnMute,
    EMPControlCmdOpenNextPlaylistItem,
    EMPControlCmdClose,
    EMPControlCmdReOpen
    };

/**
 *  MPlayerUIControllerListener
 *  An interface class. Defines callback to be called from engine. It should be
 *  implemented by the application UI class.
 */
class MPlayerUIControllerListener
    {
    public: // New functions
        /**
         * This method is called when UI controller has been initialized.
         * @param  aError, KErrNone or one of the system wide error codes.
         * @return void
         */
        virtual void InitControllerCompletedL(TInt aError)=0;

        /**
         * This method is called when UI controller has finished playing media.
         * @param  aError, KErrNone or one of the system wide error codes.
         * @return void
         */
        virtual void PlayCompletedL(TInt aError)=0;

        /**
         * This method is called when UI controller has finished recording media.
         * @param  aError, KErrNone or one of the system wide error codes.
         * @return void
         */
        virtual void RecordCompletedL(TInt aError)=0;

        /**
         * This method is called when UI controller's playback position is changed.
         * @param  aPlaybackPosInSeconds, new playback postions
         * @param  aTotalLengthInSeconds, clips duration
         * @return void
         */
        virtual void PlaybackPositionChangedL(TInt64 aPlaybackPosInSeconds,
        										TInt64 aTotalLengthInSeconds)=0;
    };

#endif // __MPLAYERUICONTROLLERLISTENER_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -