//---------------------------------------------------------------------------

#ifndef MainUnitH
#define MainUnitH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include "FlashPlayerControl.hpp"
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:	// IDE-managed Components
        TFlashPlayerControl *FlashPlayerControl1;
        TOpenDialog *OpenDialogFLV;
        TOpenDialog *OpenDialogSWF;
        TButton *ButtonSite;
        TButton *ButtonOrder;
        TLabel *LabelStatus;
        TLabel *Label1;
        TComboBox *ComboBoxSpeed;
        TLabel *Label2;
        TButton *ButtonEncode;
        TButton *ButtonPlayEncoded;
        TOpenDialog *OpenDialogFlashFiles;
        TSaveDialog *SaveDialogEncodedFlashFiles;
        TOpenDialog *OpenDialogEncodedFlashFiles;

        void __fastcall FormCreate(TObject *Sender);
        void __fastcall ButtonSiteClick(TObject *Sender);
        void __fastcall ButtonOrderClick(TObject *Sender);
        void __fastcall ButtonEncodeClick(TObject *Sender);
        void __fastcall ButtonPlayEncodedClick(TObject *Sender);
private:	// User declarations
   TStream* FEncodedFLVStream;
private:
        void __fastcall ContentProvider(const WideString URL, TStream* Stream, bool& bHandled);
public:		// User declarations
        __fastcall TMainForm(TComponent* Owner);
};

const int Mask = 0x43;

//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
