Ulysses Stuff > Ulysses Release Archives
Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
ntdave71694:
Looks like this isn't working again. Video stays at 0:00, and never starts :-\
LuaTenshi:
--- Quote from: HeLLFox_15 on June 17, 2012, 12:16:50 PM ---Are there any more updates planned for this? Because I have a few ideas for this.
--- Code: ---1. Players should be able to vote, if they want to play music server side.
2. When music is played server side the mics on the server should be dimmed. ( as in made quieter. )
^ I know this will kinda be offset because of Youtube loading, but this brings me to the next suggestion...
3. The ability to pre-load a video before it actually plays. This can probably be done with internet cache files, and then the video will be played from the clients cache instead of using the internet.
4. Entities, I thought a cool feature would be is for a radio entity, one that has initial volume, and distance offset. What I mean is, that people who are 2 far away from the radio will not hear the music. In fact the music wont even be loading for them. But people who are close will be able to hear it, at in altered volume based on distance.
--- End code ---
I am willing to make 1 and 2, but I have no idea how to do 3 and 4. o3o
--- End quote ---
To all the people who are saying... just use playX, playX drops FPS, quite allot.
LuaTenshi:
I have found a player that can probably fix allot of problems for you.
The website I am about to link you to generates a code like this...
--- Code: ---<script type='text/javascript' src='jwplayer.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': 'player.swf',
'file': 'http://www.youtube.com/watch?v',
'backcolor': '000000',
'frontcolor': 'FFFFFF',
'skin': 'black',
'controlbar': 'bottom',
'width': '470',
'height': '320'
});
</script>
--- End code ---
Here is the site... http://www.longtailvideo.com/support/jw-player-setup-wizard
---
You can also download it here, http://www.longtailvideo.com/players/jw-flv-player/
Good Luck, and Happy Coding.
RynO-SauruS:
Hello everyone. Sorry about the problem with many videos not playing yet again... This was due to YouTube adding a check to make sure the video box isn't too small. If you could've seen the actual video portion, it says "Video player is too small." They keep finding different ways to break my code, don't they? >:(
Anyway, I've fixed this issue in the latest version. I've created an SVN repository on Google Code, because this addon seems to require semi-frequent updates, and this makes it a lot easier and faster. Here is the checkout link: http://ulx-youtube-jukebox.googlecode.com/svn/trunk/ (EDIT: link fixed, sorry)
In case you don't know how to use SVN, to install this, you need to install Tortoise SVN (Download) if you haven't already, create a folder in your "garrysmod/garrysmod/addons" folder named "ULX_YouTube_Jukebox" or whatever you want, then right-click the new folder and select "SVN Checkout...", paste the checkout link I've posted above, and click OK.
Since the changes I made between the latest release and when I created the SVN aren't logged, I'll try to list them as I remember them:
--- Code: ---Added a Lua volume slider to the menu, and disabled mouse input on the player box.
--- End code ---
Now, here's the current SVN changelog as of this post:
--- Code: ---rev 7:
Added YouTube video "debug" feature, allows you to debug the YouTube video that's playing (client-side) by showing what's on the screen (YouTube errors for example).
Fixed many videos not playing due to the "Video player is too small" error.
Made the player box smaller.
Fixed being able to open the menu multiple times.
Switched to the new name in a few more places, including the title of the menu.
rev 6:
Fixed changelog.txt (FAIL)
rev 5:
Fixed changelog.txt
rev 4:
Fixed changelog.txt
rev 3:
Changed name from ULX YouTube music player to ULX YouTube Jukebox.
Allowed manual text entry into Volume slider.
Volume is now saved (remembered) via a CVar, and the video volume is automatically set accordingly when a video is loaded.
rev 2:
Initial commit.
rev 1:
Initial directory structure.
--- End code ---
Special thanks to HellFox for his advice/assistance on this, and giving me some ideas for things, including the "video debug" feature. :)
LuaTenshi:
The http://code.google.com/p/ulx-youtube-jukebox/source/browse/trunk will give you an error that looks like...
--- Code: ---Server sent unexpected return value (405 Method Not Allowed) in response to
OPTIONS request for 'http://code.google.com/p/ulx-youtube-jukebox/source/browse/trunk'
--- End code ---
Use this checkout link instead... https://ulx-youtube-jukebox.googlecode.com/svn/trunk/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version