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:
Added a Lua volume slider to the menu, and disabled mouse input on the player box.
Now, here's the current SVN changelog as of this post:
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.
Special thanks to
HellFox for his advice/assistance on this, and giving me some ideas for things, including the "video debug" feature.