Jump to content

Shared media player script


NewYork Dezno
 Share

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

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

Recommended Posts

  • 3 years later...
On 2/8/2018 at 4:03 PM, NewYork Dezno said:

I'm looking for a script or shared media player script that will read notecard in shared media web tv and open the url links on the notecard onto the object showing the media website's

Am looking for this too.. in additon as option to stream the audio without the video..

Link to comment
Share on other sites

It's much easier to set prim media via the viewer controls than via script, and it's not clear if you want to show multiple sites at the same time, or switch between them. for a very simple site switcher you could try something like:

list gSites=["www.secondlife.com","www.DuckDuckGo.com","www.Google.com"];
integer gSitePointer;
integer gButtonFace=0; 
integer gMediaFace=2;

default
{
    state_entry()
    {
        integer success =llSetPrimMediaParams(gMediaFace,
        [
            PRIM_MEDIA_CURRENT_URL,
                llList2String(gSites,0),
            PRIM_MEDIA_PERMS_CONTROL, // who can change the url with the control bar.
                PRIM_MEDIA_PERM_NONE, // chose from 'NONE,OWNER,GROUP,ANYONE'
            PRIM_MEDIA_PERMS_INTERACT, // who can interact with the site.
                PRIM_MEDIA_PERM_ANYONE // no final comma.
        ]);
        
    }

    touch_start(integer total_number)
    {
        if(llDetectedTouchFace(0)==gButtonFace)
        {   ++gSitePointer;
        }
        else
            return;
        if(gSitePointer>=llGetListLength(gSites))
            gSitePointer=0;
        string Site=llList2String(gSites,gSitePointer);
        llSay(0, "Setting Site to "+Site);
        llSetPrimMediaParams(gMediaFace,
        [   PRIM_MEDIA_CURRENT_URL,
                Site
        ]);
    }
}

 

  • Thanks 1
Link to comment
Share on other sites

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