OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
/// <summary>
/// Handle a fetch request for media textures
/// </summary>
/// <param name="omr"></param>
/// <returns></returns>
Handle a fetch request for media textures
Handle a fetch request for media textures
protected string HandleObjectMediaRequest(ObjectMediaRequest omr)
        {
            UUID primId = omr.PrimID;
            SceneObjectPart part = m_scene.GetSceneObjectPart(primId);
            if (null == part)
            {
                m_log.WarnFormat(
                    "[MOAP]: Received a GET ObjectMediaRequest for prim {0} but this doesn't exist in region {1}", 
                    primId, m_scene.RegionInfo.RegionName);
                return string.Empty;
            }
            if (null == part.Shape.Media)
                return string.Empty;
            ObjectMediaResponse resp = new ObjectMediaResponse();
            resp.PrimID = primId;
            lock (part.Shape.Media)
                resp.FaceMedia = part.Shape.Media.ToArray();
            resp.Version = part.MediaUrl;
            string rawResp = OSDParser.SerializeLLSDXmlString(resp.Serialize());
            return rawResp;
        }
protected string HandleObjectMediaRequest ( ObjectMediaRequest omr ) { UUID primId = omr . PrimID ; SceneObjectPart part = m_scene . GetSceneObjectPart ( primId ) ; if ( null == part ) { m_log . WarnFormat ( " " , primId , m_scene . RegionInfo . RegionName ) ; return string . Empty ; } if ( null == part . Shape . Media ) return string . Empty ; ObjectMediaResponse resp = new ObjectMediaResponse ( ) ; resp . PrimID = primId ; lock ( part . Shape . Media ) resp . FaceMedia = part . Shape . Media . ToArray ( ) ; resp . Version = part . MediaUrl ; string rawResp = OSDParser . SerializeLLSDXmlString ( resp . Serialize ( ) ) ; return rawResp ; }
Handle a fetch request for media textures
Handle a fetch request for media textures
//            m_log.DebugFormat("[MOAP]: Got HandleObjectMediaRequestGet raw response is [{0}]", rawResp);
None
omr
ObjectMediaRequest
None