How can I display my website ?
|
|
Carbonon Republic
Registered User
Join date: 12 Jun 2008
Posts: 10
|
06-18-2008 23:19
I wanna display my website in second life virtual world.Am a premium accountant and also am having own land.I have written following code and that code was compile successfully.But there is no display in my land.Any please assist me what is the procedure to display that website on my land. that script is follows.
list urls;
default { state_entry() { urls+=["http://carbonon.com/"]; urls+=["http://carbonon.com/design/game_develop.html"]; } touch_start(integer total_number) { integer entry; string webpage;
for(entry = 0;entry < llGetListLength(urls);entry++) { webpage = llList2String(urls,entry); llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,webpage]); llSleep(5); } } }
|
|
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
|
06-19-2008 00:09
You can use the media settings on your land to display websites.
Click on the top bar when you are at home, to bring up the land pane: Look on the Media tab to set - Media url Media type
Don't forget to set the media texture.
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
06-19-2008 00:18
You need to add the media-type to your command:
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,webpage, PARCEL_MEDIA_COMMAND_TYPE, "text/html"]);
|
|
Carbonon Republic
Registered User
Join date: 12 Jun 2008
Posts: 10
|
I need full explanation
06-19-2008 01:47
I have done what above two people were said....but coun`t understand it..explain me...
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
06-19-2008 02:28
Uhm - did it work then? or do you still have problems with it?
The thing is, that when you add the URL of your webpage to the land-info or set it via script, that you have to «tell» the land, what kind of media you wanna display. This could be a quicktime movie, a webpage or just music.
With llParcelMediaCommandList() you pass a list of commands to the land, providing the needed information to display what you want it to display.
PARCEL_MEDIA_COMMAND_URL,webpage -> sets the URL pointing to the media PARCEL_MEDIA_COMMAND_TYPE, "text/html" -> sets the type of the media to text/html, since you want to display a webpage.
What you also have to do is, provide a texture where the media will be displayed on.
Create a texture, that will only be used to display media (if you use a texture that you use for other buildings as well, you might end up with a webpage displayed on the walls of your house). Copy the UUID of this texture and add it to the llParcelMediaCommandList() - (to copy the UUID, right click on the texture in your inventory and select «copy UID» from the popup menu).
Put the texture you made for the media on the prim you want to display the media on.
The command will look like this:
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,webpage, PARCEL_MEDIA_COMMAND_TYPE, "text/html", PARCEL_MEDIA_COMMAND_TEXTURE, "66864f3c-e095-d9c8-058d-d6575e6ed1b8"]);
Where «66864f3c-e095-d9c8-058d-d6575e6ed1b8» is the UUID of your texture that you copied from your inventory.
A last thing which is important: if you're on group owned land, you have to deed the object where your script is in to the group that owns the land, otherwise, the command will not work.
HTH
|
|
Carbonon Republic
Registered User
Join date: 12 Jun 2008
Posts: 10
|
its not works
06-19-2008 23:07
I have done what all above people were said.when I have edit my prim I was click the content option in edit window for place my URL but content is loading loading only,its not open. and works.
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
06-20-2008 01:42
To see 'html on a prim' you will have to not only set the media url and media type. You will also need to put the selected media texture onto the prim you want the content to be shown on AND you will need to press the play button at the bottom of your SL window to display 'video content'.
Then, and only then you should be able to see your page.
|
|
Ron Khondji
Entirely unlike.
Join date: 6 Jan 2007
Posts: 224
|
this should work
06-20-2008 02:56
key TEXTURE = "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361"; list urls;
default { state_entry() { llParcelMediaCommandList([ PARCEL_MEDIA_COMMAND_TYPE,"text/html", PARCEL_MEDIA_COMMAND_TEXTURE,TEXTURE, PARCEL_MEDIA_COMMAND_AUTO_ALIGN,TRUE ]); llSetTexture(TEXTURE, ALL_SIDES); urls+=["http://carbonon.com/"]; urls+=["http://carbonon.com/design/game_develop.html"]; }
touch_start(integer total_number) { integer entry; string webpage; llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_PLAY]); for(entry = 0;entry < llGetListLength(urls);entry++) { webpage = llList2String(urls,entry); llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,webpage]); llSleep(5); } } }
|
|
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
|
06-20-2008 10:31
I duuno why I'm making a mess of this today 
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
06-20-2008 10:36
just a little comment about the way you do your url, it may be best to use a list for it just in my exsperances lists work better 
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
06-20-2008 12:47
You can use that FreeView TV to do web pages. Works great for as many pages as you want with a menu.
|
|
Carbonon Republic
Registered User
Join date: 12 Jun 2008
Posts: 10
|
still its not works
06-23-2008 00:29
hi, thanks for your replies,I ve done all you said... But the main problem is,The play button is not enable in my bottom window...It is hide.
|
|
Carbonon Republic
Registered User
Join date: 12 Jun 2008
Posts: 10
|
Thanks
06-23-2008 00:32
From: Ron Khondji key TEXTURE = "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361"; list urls;
default { state_entry() { llParcelMediaCommandList([ PARCEL_MEDIA_COMMAND_TYPE,"text/html", PARCEL_MEDIA_COMMAND_TEXTURE,TEXTURE, PARCEL_MEDIA_COMMAND_AUTO_ALIGN,TRUE ]); llSetTexture(TEXTURE, ALL_SIDES); urls+=["http://carbonon.com/"]; urls+=["http://carbonon.com/design/game_develop.html"]; }
touch_start(integer total_number) { integer entry; string webpage; llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_PLAY]); for(entry = 0;entry < llGetListLength(urls);entry++) { webpage = llList2String(urls,entry); llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,webpage]); llSleep(5); } } }
I have paste your script in my window...
|
|
Carbonon Republic
Registered User
Join date: 12 Jun 2008
Posts: 10
|
still its not works
06-24-2008 22:29
hi, thanks for your replies,I ve done all you said... But the main problem is,The play button is not enable in my bottom window of second life...It is hiding..
|
|
Ron Khondji
Entirely unlike.
Join date: 6 Jan 2007
Posts: 224
|
06-25-2008 04:54
Check your preferences. Under 'Audio & Video' you must have 'Play streaming media when available' turned on.
|