]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/lib/vidbase.h
4498131a6220f403910d35fc3f41d09407438ccb
1 // /////////////////////////////////////////////////////////////////////////////
4 // Author: Guilhem Lavaux
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
9 // License: wxWindows license
10 // /////////////////////////////////////////////////////////////////////////////
11 /* Real -*- C++ -*- */
12 #ifndef __VID_bdrv_H__
13 #define __VID_bdrv_H__
19 #include "wx/string.h"
20 #include "wx/window.h"
38 class wxVideoBaseDriver
;
41 class wxVideoBaseDriver
: public wxObject
{
43 DECLARE_ABSTRACT_CLASS(wxVideoBaseDriver
)
45 wxWindow
*m_video_output
;
50 wxVideoBaseDriver(wxInputStream
& str
);
52 virtual ~wxVideoBaseDriver();
55 virtual bool Play() = 0;
57 virtual bool Stop() = 0;
59 virtual bool Pause() = 0;
61 virtual bool Resume() = 0;
64 virtual bool SetVolume(wxUint8 vol
) = 0;
66 virtual bool Resize(wxUint16 w
, wxUint16 h
) = 0;
68 virtual bool GetSize(wxSize
& size
) const = 0;
71 virtual bool IsCapable(wxVideoType
WXUNUSED(v_type
)) { return FALSE
; }
74 virtual void OnFinished() {}
77 virtual bool AttachOutput(wxWindow
& output
);
79 virtual void DetachOutput();
81 virtual bool IsPaused() = 0;
82 virtual bool IsStopped() = 0;
85 extern wxFrame
*wxVideoCreateFrame(wxVideoBaseDriver
*vid_drv
);