00001 00032 #ifndef LLVIEWERPARCELMEDIAAUTOPLAY_H 00033 #define LLVIEWERPARCELMEDIAAUTOPLAY_H 00034 00035 #include "llmediabase.h" 00036 #include "lltimer.h" 00037 00038 // timer to automatically play media 00039 class LLViewerParcelMediaAutoPlay : LLEventTimer 00040 { 00041 public: 00042 LLViewerParcelMediaAutoPlay(); 00043 virtual BOOL tick(); 00044 static void initClass(); 00045 static void cleanupClass(); 00046 static void playStarted(); 00047 00048 private: 00049 S32 mLastParcelID; 00050 BOOL mPlayed; 00051 F32 mTimeInParcel; 00052 }; 00053 00054 00055 #endif // LLVIEWERPARCELMEDIAAUTOPLAY_H