Ulysses Stuff > Ulysses Release Archives

Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)

<< < (2/19) > >>

RynO-SauruS:
Thank you!

RynO-SauruS:
Big update!


--- Code: ---UPDATE 1.1:
+Addition: A playlist feature has been added! Save a video to the server's playlist with "ulx savevid <url>" (console) or "!savevid <url>" (chat), or save the currently playing video with "ulx savecurvid" (console) or "!savecurvid" (chat), and play saved music by opening the music menu with "ulx music" (console) or "!music" (chat).
+Addition: Added 2 client-side CVars, "ulx_songplayer_enable" (enables/disables the music player client-side), and "ulx_songplayer_quality" (sets the quality of videos client-side)
Possible values: "small" = 240p, "medium" = 360p, "large" = 480p, "hd720" = 720p, "hd1080" = 1080p, "highres" = highest quality
*Change: The player controls now automatically hides itself when a video is not playing, with a nice fade in/out.
*Change: Changed the "stop" command (stops video client-side) to "stopvid", and therefore changed the old "stopvid" (stops video for everyone) to "stopvidall".
=Semi-fix: DRASTICALLY reduced the frequency of client crashes (almost never crashes now) when playing or stopping a video.

--- End code ---

JamminR:
Some nice updates there Ryno.

How does your play for all work? Does it load the script locally for them?
(Sorry, I've not actually looked at the code/used it)

I may have enhancement suggestion depending on how you do it already.

RynO-SauruS:
The server sends a usermessage to all clients connected, and when they receive the usermessage, their client loads a small block of HTML code in an HTML frame (which has player controls).

JamminR:
Ah ok. I'd figured that was playing locally.

Few ideas to get some more thought process going. :D

Perhaps add a way to play to an individual or individuals?
Doing it in 'standard' ULX style would require you move some parameter/variables around in passing to functions.
ulx playvid <player(s)> <url>
Those who use it now would have to get used to it, using ^ for themselves, but would allow admins a bit more control if you wrote that in.

To me, Playvid seems like it would be better served by those with special access/admin privileges.
I wouldn't want a player interjecting on each other on a server I'd run.
So, what about playvidlocal for clients side only?
Write in additional code that allows players to play stuff they want locally. Stored locally on thier machine.
Make there own playlist perhaps, make a separate menu, whatever, yet still allow playing stuff from the server.
If you wanted to get really complicated, allow a client option to 'suggest for server' that would allow server admins to see suggestions for the server/approve later.
Or some type of share command. One player plays non-server stored song. Makes comment to others about how awesome it is and to explain why he's bunny hopping around the map. :P
Others ask to hear it. Player listening runs sharevid <player(s)> <url> and the other players don't get forced to play it, but script asks them if they want to listen.

Ok. That's enough to get your mind going for now. Some of that now that I look back seems to complicate it (ULX Motto, striving for simplicity), but thinking you might find nice
compromises.

These mind stream of thoughts brought to you by The Glitch Mob - How to Be Eaten by a Woman
(Though they have a few good ones I've been jamming (see, see, "Jammin"R) to last night and this morning, that one was cranked while writing the above.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version