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

📄 player.h

📁 symbian下的FLV播放视频源码 可以快速便捷的播放FLV格式的视频
💻 H
字号:
#ifndef PLAYER_H_
#define PLAYER_H_

#include "avcodec.h"
#include "my_utils.h"
#include "NeoFile.h"
#include "FLVDecoder.h"
#include "NeoStreamBufferManager.h"
#include "NeoStreamPlayer.h"

void InitPlayer();
void OpenFlvAndInit(char* fname, MNeoStreamBufferManager* aNeoStreamBufferManager);
int InitVideoCodec(CNeoFILE* aNeoFile);
int InitAudioCodec(CNeoFILE* aNeoFile, MNeoStreamBufferManager* aNeoStreamBufferManager);
int FetchCodecAndDecode(int& pts, MNeoStreamBufferManager* aNeoStreamBufferManager);
int FetchCodecAndDecodeSoundOnly(int& aPts, MNeoStreamBufferManager* aNeoStreamBufferManager, long& aAudioCurrentFTell);
int DoWithDecoded(unsigned char* dst, unsigned char no_pic, int first_frame_num, int first_frame_timestamp, int& frame_num, int now_timestamp);
void Flv_GetNextFrame();
void CloseFlvAndDestroy();

int GetFirstKeyFramePositionBefore();
int GetFirstKeyFramePositionAfter();

void SeekFileTo(int position);

void PlayerSetRect(int width, int height);

long CurrentFTell();

#endif /*PLAYER_H_*/

⌨️ 快捷键说明

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