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 
00019 class CzPlatformVideo: public IzPlatformVideo
00020 {
00021     // Properties
00022 protected:
00023     float                   getPlayPosition() const;
00024     bool                    setPlayPosition(float pos);
00025     bool                    isPlaying() const;
00026     void                    setVolume(float volume);
00027     float                   getVolume() const;
00028 public:
00029     // Properties end
00030 
00031 protected:
00032 public:
00033     int                     Init();
00034     void                    Release();
00035 
00036     bool                    Play(const char* filename, const CzIRect& rect, int repeat_count, eCzVideoCodec codec);
00037     bool                    PlayFromMemory(char* mem, uint32 len, const CzIRect& rect, int repeat_count, eCzVideoCodec codec);
00038     void                    Stop();
00039     void                    Pause();
00040     void                    Resume();
00041     bool                    isCodecSupported(eCzVideoCodec codec);
00042     bool                    isCodecSupported(unsigned int codec_hash, bool &found);
00043 
00044     // Event notification
00045     void                    NotifyStopped();
00046 };
00047 
00048 
00049 #endif  // _CCZ_PLATFORM_VIOEO_H_