summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerparcelmediaautoplay.h
blob: 20b132c8279c3b39f85e2626520f651a108ee234 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * @file llviewerparcelmediaautoplay.h
 * @author Karl Stiefvater
 * @brief timer to automatically play media in a parcel
 *
 * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
 * $License$
 */
#ifndef LLVIEWERPARCELMEDIAAUTOPLAY_H
#define LLVIEWERPARCELMEDIAAUTOPLAY_H

#include "llmediabase.h"
#include "lltimer.h"

// timer to automatically play media
class LLViewerParcelMediaAutoPlay : LLEventTimer
{
 public:
	LLViewerParcelMediaAutoPlay();
	virtual BOOL tick();
	static void initClass();
	static void cleanupClass();
	static void playStarted();
	
 private:
	S32 mLastParcelID;
	BOOL mPlayed;
	F32 mTimeInParcel;
};


#endif // LLVIEWERPARCELMEDIAAUTOPLAY_H