C# Class Universe.Modules.Entities.Media.MoapModule

Inheritance: INonSharedRegionModule, IMoapModule
显示文件 Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
m_isEnabled bool
m_omCapUrls string>.Dictionary
m_omCapUsers UUID>.Dictionary
m_omuCapUrls string>.Dictionary
m_omuCapUsers UUID>.Dictionary
m_scene IScene

Public Methods

Method Description
AddRegion ( IScene scene ) : void
ClearMediaEntry ( ISceneChildEntity part, int face ) : void
Close ( ) : void
GetMediaEntry ( ISceneChildEntity part, int face ) : OpenMetaverse.MediaEntry
Initialize ( IConfigSource configSource ) : void
OnDeregisterCaps ( UUID agentID, IRegionClientCapsService caps ) : void
OnRegisterCaps ( UUID agentID, IHttpServer server ) : OSDMap
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
SetMediaEntry ( ISceneChildEntity part, int face, OpenMetaverse.MediaEntry me ) : void

Protected Methods

Method Description
CheckFaceParam ( ISceneChildEntity part, int face ) : void

Check that the face number is valid for the given prim.

CheckUrlAgainstWhitelist ( string rawUrl, string whitelist ) : bool

Check the given url against the given whitelist.

HandleObjectMediaMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]

Sets or gets per face media textures.

HandleObjectMediaNavigateMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]

Received from the viewer if a user has changed the url of a media texture.

HandleObjectMediaRequest ( ObjectMediaRequest omr ) : byte[]

Handle a fetch request for media textures

HandleObjectMediaUpdate ( string path, ObjectMediaUpdate omu ) : byte[]

Handle an update of media textures.

SetPartMediaFlags ( ISceneChildEntity part, int face, bool flag ) : void

Set the media flags on the texture face of the given part.

The fact that we need a separate function to do what should be a simple one line operation is BUTT UGLY.

UpdateMediaUrl ( ISceneChildEntity part, UUID updateId ) : void

Update the media url of the given part

Method Details

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void

CheckFaceParam() protected method

Check that the face number is valid for the given prim.
protected CheckFaceParam ( ISceneChildEntity part, int face ) : void
part ISceneChildEntity
face int
return void

CheckUrlAgainstWhitelist() protected method

Check the given url against the given whitelist.
protected CheckUrlAgainstWhitelist ( string rawUrl, string whitelist ) : bool
rawUrl string
whitelist string
return bool

ClearMediaEntry() public method

public ClearMediaEntry ( ISceneChildEntity part, int face ) : void
part ISceneChildEntity
face int
return void

Close() public method

public Close ( ) : void
return void

GetMediaEntry() public method

public GetMediaEntry ( ISceneChildEntity part, int face ) : OpenMetaverse.MediaEntry
part ISceneChildEntity
face int
return OpenMetaverse.MediaEntry

HandleObjectMediaMessage() protected method

Sets or gets per face media textures.
protected HandleObjectMediaMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

HandleObjectMediaNavigateMessage() protected method

Received from the viewer if a user has changed the url of a media texture.
protected HandleObjectMediaNavigateMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

HandleObjectMediaRequest() protected method

Handle a fetch request for media textures
protected HandleObjectMediaRequest ( ObjectMediaRequest omr ) : byte[]
omr OpenMetaverse.Messages.Linden.ObjectMediaRequest
return byte[]

HandleObjectMediaUpdate() protected method

Handle an update of media textures.
protected HandleObjectMediaUpdate ( string path, ObjectMediaUpdate omu ) : byte[]
path string Path on which this request was made
omu OpenMetaverse.Messages.Linden.ObjectMediaUpdate
return byte[]

Initialize() public method

public Initialize ( IConfigSource configSource ) : void
configSource IConfigSource
return void

OnDeregisterCaps() public method

public OnDeregisterCaps ( UUID agentID, IRegionClientCapsService caps ) : void
agentID UUID
caps IRegionClientCapsService
return void

OnRegisterCaps() public method

public OnRegisterCaps ( UUID agentID, IHttpServer server ) : OSDMap
agentID UUID
server IHttpServer
return OSDMap

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

SetMediaEntry() public method

public SetMediaEntry ( ISceneChildEntity part, int face, OpenMetaverse.MediaEntry me ) : void
part ISceneChildEntity
face int
me OpenMetaverse.MediaEntry
return void

SetPartMediaFlags() protected method

Set the media flags on the texture face of the given part.
The fact that we need a separate function to do what should be a simple one line operation is BUTT UGLY.
protected SetPartMediaFlags ( ISceneChildEntity part, int face, bool flag ) : void
part ISceneChildEntity
face int
flag bool
return void

UpdateMediaUrl() protected method

Update the media url of the given part
protected UpdateMediaUrl ( ISceneChildEntity part, UUID updateId ) : void
part ISceneChildEntity
updateId UUID /// The id to attach to this update. Normally, this is the user that changed the /// texture ///
return void

Property Details

m_isEnabled protected_oe property

Is this module enabled?
protected bool m_isEnabled
return bool

m_omCapUrls protected_oe property

Track the ObjectMedia capabilities given to users keyed by agent. Lock m_omCapUsers to manipulate.
protected Dictionary m_omCapUrls
return string>.Dictionary

m_omCapUsers protected_oe property

Track the ObjectMedia capabilities given to users keyed by path
protected Dictionary m_omCapUsers
return UUID>.Dictionary

m_omuCapUrls protected_oe property

Track the ObjectMediaUpdate capabilities given to users keyed by agent. Lock m_omuCapUsers to manipulate
protected Dictionary m_omuCapUrls
return string>.Dictionary

m_omuCapUsers protected_oe property

Track the ObjectMediaUpdate capabilities given to users keyed by path
protected Dictionary m_omuCapUsers
return UUID>.Dictionary

m_scene protected_oe property

The scene to which this module is attached
protected IScene m_scene
return IScene