NewYork Dezno Posted February 9, 2018 Share Posted February 9, 2018 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 Link to comment Share on other sites More sharing options...
Gusher Castaignede Posted March 11, 2021 Share Posted March 11, 2021 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 More sharing options...
Quistess Alpha Posted March 12, 2021 Share Posted March 12, 2021 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 ]); } } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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