0
点赞
收藏
分享

微信扫一扫

2.3 客户端开发-控制层开发

控制层开发总结
1 细节需要不断的完善,追加一些命令和方法,调整接口参数
2 尽可能改功能模块,而非控制模块的接口和架构
3 设计接口的,要考虑可扩展性

#pragma once
#include "VLCTOOL.h"
#include "VideoClinetDlg.h"
enum VLCCommand
{
	VLCTOOL_PLAY,
	VLCTOOL_PAUSE,
	VLCTOOL_STOP,
	VLCTOOL_GET_VOLUME,
	VLCTOOL_GET_POSTION,
};
class VideoClientController
{
public:
	VideoClientController();
	~VideoClientController();
	int Init(CWnd*& pWnd);
	int Invoke();
	int SetMedia(std::string& strUrl);//请使用utf-8 的格式
	float VideoCtrl(VLCCommand cmd);//-1.0错误
	int SetPosition(float pos);
	int SetWnd(HWND hWnd);
	int SetVolume(int volume);
	VlcSize GetMediaInfomation();
	std::string Unicode2Utf8(const std::wstring& strIn);
protected:
	VLCTOOL m_vlc;
	CVideoClinetDlg m_dlg;
};


举报

相关推荐

0 条评论