123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- #ifndef __NET_PLAYER_IF_H__
- #define __NET_PLAYER_IF_H__
- #define NET_PLAYER_SUCCESS (0)
- #define NET_PLAYER_FAIL (-1)
- #define NETPLAYER_IF_PE_MP3_LYRIC_NOT_PRESENT_WARNING (1)
- #define NETPLAYER_IF_PE_TRICKMODE_NOT_SUPPORT_WARNING (2)
- #define NETPLAYER_IF_PE_UNSUPPORT_AUDIO_WARNING (3)
- #define NETPLAYER_IF_PE_NO_VIDEO_WARNING (4)
- typedef int (*Net_Player_MWCallback)(int, UINT32, UINT32);
- typedef struct Net_Player_PInfo_t_t_
- {
- UINT32 dParam;
- Net_Player_MWCallback pfPicCallback;
- Net_Player_MWCallback pfDlnaCallback;
- } Net_Player_PInfo_t;
- typedef struct Net_Player_AVInfo_t_t_
- {
- Net_Player_MWCallback pfAVCallback;
- Net_Player_MWCallback pfDlnaCallback;
- INT32 (*pfInitializePack)(char **pszBuf);
- INT32 (*pfPrepareData)(UINT32 dHandle,char *pszBuf,UINT32 dIndex); //pack for data.
- INT32 (*pfFinalizePack)(char *pszBuf);
- } Net_Player_AVInfo_t;
- typedef struct Net_Player_CustomInfo_t_
- {
- Net_Player_PInfo_t stPInfo;
- Net_Player_AVInfo_t stAVInfo;
- } Net_Player_CustomInfo_t;
- typedef enum Net_Player_IF_Mode_t_
- {
- NET_PLAYER_UNKNOWN = 0,
- NET_PLAYER_IF_P,
- NET_PLAYER_IF_AV
- } Net_Player_IF_Mode_t;
- //HONG.ZHANG 2013.03.30 add for AP playback mode record
- //must be sync with FMW filter definition
- typedef enum Net_Player_APPB_Mode_t_
- {
- NET_PLAYER_APPB_V,
- NET_PLAYER_APPB_A,
- NET_PLAYER_APPB_P,
- NET_PLAYER_APPB_UNKNOWN
- } Net_Player_APPB_Mode_t;
- typedef enum Net_Player_StreamMode_e_
- {
- NET_PLAYER_STREAM_FILE = 0,
- NET_PLAYER_STREAM_LIVE,
- NET_PLAYER_STREAM_END
- } Net_Player_StreamMode_e;
- typedef struct Net_Player_MediaInfo_
- {
- char* pUrl;
- char* pMetaData;
- char * trackDuration;//add by rui.l
- UINT64 dwFileSize;
- UINT32 Index;
- Net_Player_APPB_Mode_t eAPPB_mode;
- Net_Player_IF_Mode_t eMode;
- Net_Player_StreamMode_e eStreamMode;
- } Net_Player_MediaInfo;
- typedef struct Net_Player_AudStrmAttribute_t_
- {
- UINT32 dAudStrmIdx;
- void* pstAudStrmAttribute;
- } Net_Player_AudStrmAttribute_t;
- typedef enum Net_Player_Set_e_
- {
- NET_PLAYER_SET_NULL,
- // Photo Slideshow
- NET_PLAYER_SET_EFFECT,
- NET_PLAYER_SET_SLIDESHOW,
- NET_PLAYER_SET_SLIDETIME,
- NET_PLAYER_SET_ZOOMIN,
- NET_PLAYER_SET_ZOOMMOVE,
- NET_PLAYER_SET_ROTATION,
- NET_PLAYER_SET_CLEAR_FRAMBUFER,
- NET_PLAYER_SET_EFFECT_TYPE,
- NET_PLAYER_SET_AUDIOSTREAM,
- NET_PLAYER_SET_AUDIOCHANNEL,
- NET_PLAYER_SET_SUBPICONOFF,
- NET_PLAYER_SET_SUBPICCHANGE,
- NET_PLAYER_SET_WMKLOCKRULE,
- NET_PLAYER_SET_WMKUNLOCKRULE,
- NET_PLAYER_SET_MAX
- } Net_Player_Set_e;
- typedef enum Net_Player_Get_e_
- {
- NET_PLAYER_GET_NULL,
- NET_PLAYER_GET_ELAPSEDTIME,
- NET_PLAYER_GET_PLAYBACKINFO,
- NET_PLAYER_GET_CURRENTAUDIOSTREAMNUM,
- NET_PLAYER_GET_TOTALAUDIOSTREAMCOUNT,
- NET_PLAYER_GET_CURRENTAUDIOCHANNELNUM,
- NET_PLAYER_GET_TOTALAUDIOCHANNELCOUNT,
- NET_PLAYER_GET_TOTALSUBPICCOUNT,
- NET_PLAYER_GET_CURSUBPICONOFF,
- NET_PLAYER_GET_CURSUBPICSTREAM,
- NET_PLAYER_GET_AUDIOSTREAMATTRIBUTE,
- NET_PLAYER_GET_PICTURESTATE,//add by rui.l
- NET_PLAYER_GET_PICFRAMEINFO,
- NET_PLAYER_GET_CURRENTPOSITION,//add by rui.l 0411
- NET_PLAYER_GET_CURRENTTRACKSIZE,//add by rui.l0411
- NET_PLAYER_GET_PlaySpeed,
- NET_PLAYER_GET_MAX
- } Net_Player_Get_e;
- typedef struct Net_Player_Set_ZMInfo_t_
- {
- UINT32 MoveFactor;
- UINT16 wStep;
- UINT16 wDistance;
- } Net_Player_Set_ZMInfo_t;
- typedef enum
- {
- NET_PLAYER_CBK_NULL = 0,
- NET_PLAYER_CBK_GET_PRE_URL,
- NET_PLAYER_CBK_GET_NEXT_URL,
- NET_PLAYER_CBK_DRAW_LARGE_PIC_READY,
- NET_PLAYER_CBK_DECODE_PIC_DONE,
- NET_PLAYER_CBK_DRAW_LARGE_PIC_DONE,
- NET_PLAYER_CBK_DRAW_LARGE_PIC_ERROR,
- NET_PLAYER_CBK_DRAW_THUMBNAIL_DONE,
- NET_PLAYER_CBK_DRAW_THUMBNAIL_ERROR,
- NET_PLAYER_CBK_STARTUP_FAIL,
- NET_PLAYER_CBK_STARTUP_DONE,//10
- NET_PLAYER_CBK_SHOW_PLAY,
- NET_PLAYER_CBK_SHOW_STOP,
- NET_PLAYER_CBK_SHOW_STOP_FAIL, //add by jiang.hu for mantis 0159370
- NET_PLAYER_CBK_SHOW_PAUSE,
- NET_PLAYER_CBK_SHOW_PAUSE_FAIL,
- NET_PLAYER_CBK_SHOW_FF,
- NET_PLAYER_CBK_SHOW_FR,
- NET_PLAYER_CBK_SHOW_FR_FILE_BEIGIN,
- NET_PLAYER_CBK_SHOW_FF_FAIL,
- NET_PLAYER_CBK_SHOW_FR_FAIL,//20
- NET_PLAYER_CBK_SHOW_NEXT,
- NET_PLAYER_CBK_SHOW_PREV,
- NET_PLAYER_CBK_PLAY_DONE,
- NET_PLAYER_CBK_GOTO_DONE,
- NET_PLAYER_CBK_GOTO_FAIL,
- NET_PLAYER_CBK_CACHE_START,
- NET_PLAYER_CBK_CACHE_STOP,
- NET_PLAYER_CBK_PLAY_FINISH,
- NET_PLAYER_CBK_PLAY_START,// add for mantis 0160705
- NET_PLAYER_CBK_FINALIZE_DONE,//30
- NET_PLAYER_CBK_CHANGE2_NORMAL_PLAY_DONE,
- NET_PLAYER_CBK_PE_WARNING,
- NET_PLAYER_CBK_MAX,
- } NET_PLAYER_CbkMessage_t;
- typedef enum
- {
- DLNA_PLAYER_PIC_EVENT_DECODE_START = 0X0004FFFF, /*!< Picture Decode Start evnet*/
- DLNA_PLAYER_PIC_EVENT_DECODE_FINISH = 0X00040001, /*!< Picture Decode Finish evnet*/
- DLNA_PLAYER_PIC_EVENT_DECODE_STOP = 0X00040002, /*!< Picture Decode Finish evnet*/
- DLNA_PLAYER_PIC_EVENT_DECODE_ERROR = 0x0040007, /*!< Picture Decode Error*/
-
- DLNA_PLAYER_AV_EVENT_DECODE_START = 0X0001000F, /*!< Audio/Video Decode Start evnet*/
- DLNA_PLAYER_AV_EVENT_INITOK = 0X0001000D,
- DLNA_PLAYER_AV_EVENT_INIT_FAILED = 0X0001000C,
- DLNA_PLAYER_AV_EVENT_PLAY_DONE = 0X0001000E,
- DLNA_PLAYER_AV_EVENT_BUFFERING_START = 0X0001000A,
- DLNA_PLAYER_AV_EVENT_BUFFERING_END = 0X0001000B,
- DLNA_PLAYER_AV_EVENT_POOR_NETWORK = 0X00010010,
- DLNA_PLAYER_EVENT_END = 0X000FFFFF,
- } AL_DLNA_PLAYER_Event_t;
- #ifdef DLNA_BG_VERSION
- INT32 NET_Player_IF_MusicSel_SetMediaInfo(Net_Player_MediaInfo *MediaInfo);
- INT32 NET_Player_IF_MusicSel_Play(void);
- INT32 NET_Player_IF_MusicSel_Stop(void);
- INT32 NET_Player_IF_MusicSel_Pause(void);
- #endif
- void DLNA_MediaCtrl_NET_Player_PE_Event_Process(UINT32 event_id);
- void DLNA_MediaCtrl_NET_Player_PE_Register_MsgRouteway(BOOL (*SendMsg_Func)(AL_DLNA_PLAYER_Event_t));
- void DLNA_MediaCtrl_NET_Player_RegisterMsgRouteway(BOOL (*SendMsg_Func)(AL_DLNA_PLAYER_Event_t));
- INT32 NET_Player_IF_Initialize(Net_Player_CustomInfo_t* pstCusInfo);
- INT32 NET_Player_IF_Finalize(void);
- INT32 NET_Player_IF_SetMediaInfo(Net_Player_MediaInfo *MediaInfo);
- INT32 NET_Player_IF_Play(void);
- INT32 NET_Player_IF_Stop(void);
- INT32 NET_Player_IF_Pause(void);
- INT32 NET_Player_IF_FF(UINT32 dFactor);
- INT32 NET_Player_IF_FR(UINT32 dFactor);
- INT32 NET_Player_IF_Goto(UINT32 dSecond);
- INT32 NET_Player_IF_Next(void);
- INT32 NET_Player_IF_Prev(void);
- INT32 NET_Player_IF_Set(Net_Player_Set_e eSet, UINT32 dParam);
- INT32 NET_Player_IF_Get(Net_Player_Get_e eGet, UINT32 dParam);
- #endif
|