Jump to content

Media does not play automatically at all


Poltergeist Azarov
 Share

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

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

Recommended Posts

I made a media window which turns on by below code but it only shows a white screen so does not open the media site automatically unless I click on screen once. Any ideas?


        if (MediaON==FALSE) { 
            MoveMediaWindow("up"); 
            string URL = "http://www.youtube.com"; integer face=2;
            llWhisper(0,"Media switched on..");
            llClearLinkMedia(MediaLink,face); 
            llSetLinkPrimitiveParamsFast(MediaLink,[PRIM_TEXTURE,    face, TEXTURE_MEDIA, <2.32100, 3.11000, 0>, <0.62300,-0.02008,0> , 0.0,
                                                    PRIM_FULLBRIGHT, face, TRUE,
                                                    PRIM_GLOW,       face, 0.0,
                                                    PRIM_COLOR,      face, <1.0, 1.0, 1.0>, 1.0]);
            llClearLinkMedia(MediaLink,face);
            llSetLinkMedia(MediaLink,face, [
                PRIM_MEDIA_CURRENT_URL,    URL,
                PRIM_MEDIA_HOME_URL,       URL,
                PRIM_MEDIA_AUTO_PLAY,      TRUE,
                PRIM_MEDIA_AUTO_SCALE,     TRUE,
                PRIM_MEDIA_PERMS_CONTROL,  PRIM_MEDIA_PERM_ANYONE,
                PRIM_MEDIA_PERMS_INTERACT, PRIM_MEDIA_PERM_ANYONE]);
            MediaON=TRUE; 
            return;
        }

 

Link to comment
Share on other sites


Poltergeist Azarov wrote:

I made a media window which turns on by below code but it only shows a white screen so does not open the media site automatically unless I click on screen once. Any ideas?

 

 

Perhaps your viewer setting doesn't allow auto play of media.  I didn't get a 'white screen' with your code until I turn off auto play in  my viewer preferences and relogged. I didn't know what "MoveMediaWindow("up") was for so I commented it.

I also got the "your web browser is no longer supported" message.  Then I clicked 'no thanks' and my web browser was supported after all.  So not is not not.. but that's another issue.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3508 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...