[Opensim-users] Media on a prim test not working

Mike O'Brien Michael.T.OBrien at aero.org
Fri Mar 4 00:05:50 UTC 2011


	I'm hoping someone out there will know what's up with this, before I  
go bother the developers' list.

	We're keenly interested in the "Media on a prim" capability that's  
been folded into the development trunk of Opensim.  I downloaded the  
head of the repository, compiled and ran it on an OS X server.  It all  
seems to be running fine...except for the MOAP capability.  The code's  
in the source - I checked to make sure I had the right stuff - and the  
call compiles and executes.  However, it always returns status 0, even  
when I put garbage in the arguments, and even when the stuff is  
correct and runs correctly on the Linden grid, it seems to be a no-op  
in Opensim.  Here's the script:

default
{
    state_entry()
    {
        integer status;

        llSay(0, "Script running" + " now");
        status = llSetPrimMediaParams(3, [
            PRIM_MEDIA_CONTROLS, PRIM_MEDIA_CONTROLS_STANDARD,
            PRIM_MEDIA_CURRENT_URL, "http://info.aero.org",
            PRIM_MEDIA_HOME_URL, "http://info.aero.org",
            PRIM_MEDIA_PERMS_INTERACT, PRIM_MEDIA_PERM_OWNER,
            PRIM_MEDIA_PERMS_CONTROL, PRIM_MEDIA_PERM_OWNER,
            PRIM_MEDIA_FIRST_CLICK_INTERACT, TRUE]
            );
        llSay(0, "Media status is " + ((string)status));
    }
}

It always returns "Media status is 0", and there doesn't seem to be  
anything active on any face of the cube I put the script into.

	Any ideas?

Mike O'Brien



More information about the Opensim-users mailing list