Jump to content

Check if media is activated


EnriqueGF
 Share

You are about to reply to a thread that has been inactive for 2747 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hey!

 

Is there any function to check if an user have media activated? 

I have to execute this and save a variable only if the user have media active

             llSetPrimMediaParams(0,                        
            [PRIM_MEDIA_AUTO_PLAY,TRUE,
            
             PRIM_MEDIA_PERMS_CONTROL, FALSE,
             PRIM_MEDIA_AUTO_LOOP,TRUE,                
             PRIM_MEDIA_CURRENT_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario,
             PRIM_MEDIA_HOME_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario,    
             PRIM_MEDIA_HEIGHT_PIXELS,0,                 
             PRIM_MEDIA_WIDTH_PIXELS,0]);  

 

Thanks you!

Link to comment
Share on other sites

Ok is an if that checks if the user active the script, but this code

       llSetPrimMediaParams(0,                                    [PRIM_MEDIA_AUTO_PLAY,TRUE,                         PRIM_MEDIA_PERMS_CONTROL, FALSE,             PRIM_MEDIA_AUTO_LOOP,TRUE,                             PRIM_MEDIA_CURRENT_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario,             PRIM_MEDIA_HOME_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario,                 PRIM_MEDIA_HEIGHT_PIXELS,0,                              PRIM_MEDIA_WIDTH_PIXELS,0]);  

will execute for all the people who are in the simm, or not? I want to execute this part of code for a specified person ^^

 

Thanks you. And sorry for my bad english ^^

Link to comment
Share on other sites

The problem is that MOAP parameters are set in LSL but the media stream itself is controlled in the user's client, and we have no control over the user's client.  All we can do is set up media so that anyone with the right settings in the viewer can see it.  We can't control which people.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2747 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...