吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1384|回复: 2
收起左侧

[求助] C++代码转易语言

[复制链接]
2006554111 发表于 2020-3-29 22:54
[C++] 纯文本查看 复制代码
typedef enum
{
    EPlayer_Msg_PlayStart            = 1,
    EPlayer_Msg_PlayStop             = 2,
    EPlayer_Msg_NetworkError         = 3,
    EPlayer_Msg_Video_BufferingStart = 4,
    EPlayer_Msg_Video_BufferingStop  = 5,
    EPlayer_Msg_Audio_BufferingStart = 6,
    EPlayer_Msg_Audio_BufferingStop  = 7,
    EPlayer_Msg_Audio_PlayFinished   = 8,
    EPlayer_Msg_Video_PlayFinished   = 9,
    EPlayer_Msg_Undefine        = 0xFFFF,
} EPlayerMessage;

typedef enum
{
    EPlayerStatus_Init,
    EPlayerStatus_Opened,
    EPlayerStatus_Playing,
    EPlayerStatus_Seeking,
    EPlayerStatus_Paused,
    EPlayerStatus_Closed,
    EPlayerStatus_Unknown = -1,
} EPlayerStatus;

typedef struct
{
    bool hasAudio;
    bool hasVideo;
    unsigned int nDuration;
    unsigned int nVideoWidth;
    unsigned int nVideoHeight;
    unsigned int nAudioChannels;
    unsigned int nAudioSampleRate;
} MediaInfo;

typedef struct
{
    void *pUserData;
    void (*Callback)(void *pUserData, unsigned int msg);
} MediaNotifier;

typedef struct
{
    void (*Init)();
    void (*Uninit)();

    int  (*OpenMedia)(char* pMediaPath,
                      void* pVideoWindow,
                      unsigned int nWindowWidth,
                      unsigned int nWindowHeight);
    int  (*CloseMedia)();
    int  (*Play)();
    int  (*Pause)();
    int  (*Seek)(unsigned int nSeekPos/*ms*/);

    int  (*GetPlayingPos)();

    int  (*GetBufferingPos)();

    EPlayerStatus (*GetPlayerStatus)();

    void (*GetMeidaInfo)(MediaInfo* pMediaInfo);

    void (*SetMessageNotifer)(MediaNotifier* pNotifier);

    void (*ResizeVidoeScreen)(unsigned int nWidth, unsigned int nHeight);

    void (*UpdateVideoScreen)(void* pScreen, unsigned int nWidth, unsigned int nHeight);
} EPlayerAPI;
请大佬帮忙转一下易语言

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

JuncoJet 发表于 2020-3-29 23:04
enum 直接数值就行了
struct 结构的话,不清楚
zyh666 发表于 2020-3-29 23:10
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-26 19:52

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表