#if !defined(AFX_VIDEOVOD_H__0514FC5A_470F_4A9E_B630_921CE593B20B__INCLUDED_)
#define AFX_VIDEOVOD_H__0514FC5A_470F_4A9E_B630_921CE593B20B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// VideoVod.h : header file
//
#include "VideoViewBase.h"
#include "VodWndChn.h"
/////////////////////////////////////////////////////////////////////////////
// CVideoVod window
class CVideoVod : public CVideoViewBase
{
// Construction
public:
	CVideoVod();

// Attributes
public:
	LONG m_lVodHandle;
// Operations
public:
	long vodstart(LPCTSTR szFileName);
	void StopAllChn();
	long vod_vchs(LONG lHandle);
	void StopChn(LONG lHandle);
	int  SetSlipMode(int nMode, int nStart);
	int  SetSlipModeByList(int nChs, int *pChnList);
	void SetAutoScan(BOOL bAutoScan);
	int audioplay(BOOL bOpen);
	//int CutEditSave(json_t *pJsArray);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVideoVod)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CVideoVod();

	// Generated message map functions
protected:
	CRect m_clientRect;
	void  AdjWindowSize();
	//{{AFX_MSG(CVideoVod)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	LRESULT OnPlayEnd(WPARAM wParam, LPARAM lParam);
public:
	CVodWndChn m_VChn[VCHN_MAX];
	CString      m_szFileName;
private:
	int GetFreeChnWnd();
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VIDEOVOD_H__0514FC5A_470F_4A9E_B630_921CE593B20B__INCLUDED_)
