Free Youtube Script For All
|
|
Phr0zen Katsu
Registered User
Join date: 24 Jun 2006
Posts: 39
|
04-09-2009 07:39
//I did not write this, neither did i host the server Youtubemp4.com //Credits for the script goes to http://script.slmame.com/e284218.html//And many thanks to Youtubemp4.com Host. //How to use it? Here's how! //1. Create an Object in-world //2. Edit the Object, Click New Script //3. Edit the Script in the Object //4. Copy and Paste every line after the instructions into the Script //5. Save the Script //6. Set Object's Group to Land's Group //7. Deed Object to Group string youtube2mp4url(string video_url) { if (llGetSubString(video_url,0,6) != "http://"  return ""; string yturl=".youtube.com/watch?v="; string mp4url1="http://www.youtubemp4.com/video/"; string mp4url2=".mp4"; integer ytl=llStringLength(yturl); integer i=llSubStringIndex(video_url,yturl); if (i > 7) { video_url=mp4url1+llGetSubString(video_url,i+ytl,-1)+mp4url2; return video_url; } else return ""; } default { state_entry() { llListen(0, "", "", ""  ; } on_rez(integer start_param) { llResetScript(); } listen(integer channel, string name, key id, string msg) { if (channel == 0) { string url=youtube2mp4url(msg); if (url != ""  { // チャットでURLを設定 llParcelMediaCommandList([ PARCEL_MEDIA_COMMAND_URL,url, PARCEL_MEDIA_COMMAND_TYPE,"video/*", PARCEL_MEDIA_COMMAND_AGENT,id]); llSay(1,"MP4 URL = "+url); } } } }
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
04-09-2009 08:11
youtubemp4.com seems to be working again
_____________________
The Vengeance Studio Gadget Store is closed! 
|
|
Christif Vaher
Registered User
Join date: 24 Jun 2008
Posts: 51
|
04-10-2009 07:15
I have a question about this script. What actually is occurring on youtubemp4.com ? In other words if I wanted to use my own server versus youtubemp4.com, what would be required?
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
04-10-2009 11:39
From: Christif Vaher I have a question about this script. What actually is occurring on youtubemp4.com ? In other words if I wanted to use my own server versus youtubemp4.com, what would be required? /54/cb/315102/1.htmlSee Day Oh's posts on page 2.
_____________________
The Vengeance Studio Gadget Store is closed! 
|
|
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
|
04-12-2009 13:07
Hi, I want to play a list (notecard) of YouTube video's. How can I see the current video is at the end so that I can play the next one?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-12-2009 13:58
From: Lennard Lopez Hi, I want to play a list (notecard) of YouTube video's. How can I see the current video is at the end so that I can play the next one? you can't within lsl.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
|
04-12-2009 14:28
Pitty. Well then I will have to click for the next one 
|
|
Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
|
04-12-2009 15:12
Thanks a lot for this, Fr0zen!
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
04-12-2009 17:09
What does this script do?
Also, it's a good idea to follow indentation conventions so we can read the script more clearly. Most folks on this forum know to use the "Quote" button to see the original indentation.
|
|
Tanith Rosenbaum
Registered User
Join date: 10 Sep 2008
Posts: 42
|
04-14-2009 02:12
From: Lennard Lopez Hi, I want to play a list (notecard) of YouTube video's. How can I see the current video is at the end so that I can play the next one? You could add the time in your notecard, and have your script go by that. Add 5 seconds to allow for the clients to change the stream URL and start it. Once that time is over start the next video...
|
|
Prajna Vella
Registered User
Join date: 27 May 2008
Posts: 59
|
04-14-2009 03:02
From: Lear Cale What does this script do?
Also, it's a good idea to follow indentation conventions so we can read the script more clearly. Most folks on this forum know to use the "Quote" button to see the original indentation. Except that you don't see the indentation unless you have hacked your browser. Even if you do, why should you need to quote in order to see it? Quite frankly, I would prefer not to add yet another overhead to my browser just because LL are being tits about BB Code in the forums. Can't we do a mass-boycott of the forums or something in protest until whoever is responsible for the forums enables it? There have been enough people complaining about it and why should people have to add greasemonky and a mess of java to their browsers just to see something that is already available in the forum software and merely needs to be enabled? Who in LL is responsible for the forums anyway? There are other things we should be able to suggest, for instance sculpties should have their own section in Content Creation; at the moment sculptie threads are scattered through the building, textures and scripting sections. Sorry to be off-topic but this lack of BBCode and LL's failure to make things really usable is very annoying. Now they are implementing forum stuff as blog discussions that are very difficult to navigate. Is there somewhere better I should be addressing these comments? Anyone like to join me there?
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-14-2009 05:18
From: Prajna Vella Except that you don't see the indentation unless you have hacked your browser. Even if you do, why should you need to quote in order to see it? Try it sometime, quoting works just fine without you having to add anything to your browser or system. Properly formatted code is a necessity, especially as scripts grow in length. A lot of problems pop out immediately and it is just being considerate. None of us answering questions are being paid to do it and there is no use in making the job harder. As far as people joining you in a protest............................................. We have been protesting going on two years, here in the forums, jira, emails and IMs to various Lindens, Linden meetings ad nauseam. The forums are the LL version of a slum or the plague.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
04-14-2009 06:46
Still waiting to hear what the intent of this script is. The instructions are generic instructions for installing a script, but except for assuming the object is on group-owned land.
It looks like it listens on channel zero (ack! don't leave this puppy rezzed when you're not talking to it!) for a YouTube URL. If it finds one, it sets the parcel media to some equivalent URL -- presumably the one necessary to use for parcel media, without the YouTube boilerplate.
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
04-14-2009 12:07
From: Lear Cale Still waiting to hear what the intent of this script is....It looks like it... That is indeed what it seems to do. Do you have a specific question? The purpose is to use a third-party site to get an mp4 (quicktime) URL that you can use as a media URL. Youtube obfuscates the mp4 URL. You either have to use one of these third-party sites or host one of your own, because LSL's 2048-character limit on html reads prevents it from being used for this purpose. From: someone ...listens on channel zero (ack!... Yeah, a lot of scripts are intended as templates that you can modify to your needs. Unfortunately, some people who don't know scripting will just copy them, with all their faults, and release freebies based on them, and the faulty freebies will outsell the more carefully scripted items.
_____________________
The Vengeance Studio Gadget Store is closed! 
|
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
04-14-2009 13:24
I wish I could release the DTV YouTube player script to you all, but because it relies on my own web servers (which cost money to run) I can't really do so. The DTV YouTube player does real time processing of the YouTube pages (and does work still) working from a notecard playlist, progressing from one to the next automatically. Give me a shout if you have any questions
_____________________
<VOTE PROPOSITION 4968/> http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
04-14-2009 18:18
From: Anya Ristow That is indeed what it seems to do. Do you have a specific question? At first I had a specific question, which didn't get answered. So now I have a specific recommendation: when posting a script, PLEASE SAY WHAT IT DOES FIRST Then talk about how to install it, use it, modify it, and post the code. The instructions on this post didn't explain it. I had to read the code and decypher it to figure out that I don't need it, but might want to fiddle with it some time. When being nice enough to post code, do everyone a favor and be nice enough to add the extra 60 seconds to say what the purpose of the script is.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-14-2009 21:40
From: Lear Cale At first I had a specific question, which didn't get answered. So now I have a specific recommendation: when posting a script,
PLEASE SAY WHAT IT DOES FIRST
Then talk about how to install it, use it, modify it, and post the code.
The instructions on this post didn't explain it. I had to read the code and decypher it to figure out that I don't need it, but might want to fiddle with it some time. When being nice enough to post code, do everyone a favor and be nice enough to add the extra 60 seconds to say what the purpose of the script is. Now where's the fun in that.... if we don't get you to read the code you won't learn the code, you'll just come by snap up some scripts, drop them in your products and sell them.... this would make us very sad, both because you didn't learn anything other than a convenient spot to poach, and you used our labor to get something you wanted without any compensation to the creator.... (royal)us = people that help of place scripts here for others to learn from (royal)you = pretty much anyone else
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
04-15-2009 07:10
FUN? FUN? Young lady, if I ever find you having FUN again, you're in big trouble! Now, go to your room!
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-15-2009 13:43
From: Lear Cale FUN? FUN? Young lady, if I ever find you having FUN again, you're in big trouble! Now, go to your room! :: wanders off aimlessly :: he called me young lady... :: smile :: PS I'm glad you caught the silliness of my post, it wasn't really aimed at you 
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|