blob: bf391a83cb8e85a26b2c8a30c4b99027062daa7d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/**
* @file llviewerparcelmedia.h
* @author Callum Prentice & James Cook
* @brief Handlers for multimedia on a per-parcel basis
*
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LLVIEWERPARCELMEDIA_H
#define LLVIEWERPARCELMEDIA_H
#include "llmediabase.h"
class LLMessageSystem;
class LLParcel;
// This class understands land parcels, network traffic, LSL media
// transport commands, and talks to the LLViewerMedia class to actually
// do playback. It allows us to remove code from LLViewerParcelMgr.
class LLViewerParcelMedia
{
public:
static void initClass();
static void update(LLParcel* parcel);
// called when the agent's parcel has a new URL, or the agent has
// walked on to a new parcel with media
static void play(LLParcel* parcel);
// user clicked play button in media transport controls
static void stop();
// user clicked stop button in media transport controls
static void pause();
static void start();
// restart after pause - no need for all the setup
static void seek(F32 time);
// jump to timecode time
static LLMediaBase::EStatus getStatus();
static void processParcelMediaCommandMessage( LLMessageSystem *msg, void ** );
static void processParcelMediaUpdate( LLMessageSystem *msg, void ** );
public:
static S32 sMediaParcelLocalID;
static LLUUID sMediaRegionID;
};
#endif
|