AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzPlatformVideo.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CCZ_PLATFORM_VIOEO_H_)
00015 #define _CCZ_PLATFORM_VIOEO_H_
00016 
00017 #include "IzPlatformVideo.h"
00018 #include "s3eVideo.h"
00019 
00020 class CzPlatformVideo: public IzPlatformVideo
00021 {
00022     // Properties
00023 protected:
00024     s3eVideoCodec           getCodec(eCzVideoCodec codec);
00025     float                   getPlayPosition() const;
00026     bool                    setPlayPosition(float pos);
00027     bool                    isPlaying() const;
00028     void                    setVolume(float volume);
00029     float                   getVolume() const;
00030 public:
00031     // Properties end
00032 
00033 protected:
00034 public:
00035     int                     Init();
00036     void                    Release();
00037 
00038     bool                    Play(const char* filename, const CzIRect& rect, int repeat_count, eCzVideoCodec codec);
00039     bool                    PlayFromMemory(char* mem, uint32 len, const CzIRect& rect, int repeat_count, eCzVideoCodec codec);
00040     void                    Stop();
00041     void                    Pause();
00042     void                    Resume();
00043     bool                    isCodecSupported(eCzVideoCodec codec);
00044     bool                    isCodecSupported(unsigned int codec_hash, bool &found);
00045 
00046     // Event notification
00047     void                    NotifyStopped();
00048 };
00049 
00050 
00051 #endif  // _CCZ_PLATFORM_VIOEO_H_