Garry's Mod

Garry's Mod

Media Player (Updated Edition)
388 Comments
Shadowsun™  [author] Sep 22 @ 10:51pm 
@XAV1ERON, Firstly, what is the point of commenting on the same text on the originals and here? The problem with “HTML parsing” is not affected here, as we use a different method to extract information from YouTube.

Please deactivate the ORIGINAL ADDON, update your addons, and try again.
XAV1ER0N Sep 22 @ 5:49pm 
Dear creator please take a look at this just letting you know. yesterday media player was working just fine having a good time, laughs and cool videos. Now today I get this message.

Failed to parse HTML Page for metadata: title = string, duration = nil.
[request error] failed to parse html page for metadata: title = string, duration = nil.

It will be much appreciated please fix this error. me and my friends and everybody enjoy this addon It’s pretty fun I like showing my friends funny videos, music, behind the scenes movies, and old gameplay or new gameplay to show them what I’m talking about And the memories back then to now😁.
Cheapy_playz Sep 21 @ 11:25am 
wow now I can watch Markiplier in Gmod:steamhappy:
SC_MihaiL Sep 18 @ 5:14am 
thx for fixing theese errors! Finally, the media player works properly. I live in Russia and use zapret-discord-youtube to bypass blocks, and I thought the media player was broken in Russia.
Shadowsun™  [author] Sep 18 @ 3:22am 
@Jdramirez165, I am already aware of the error. Please update the add-on now and try it out. I have released an update/fix for it.
Jdramirez165 Sep 18 @ 3:03am 
I got a "Site not available" message after requesting Youtube videos. I don't know why its doing it, & it makes the addon unusable...sad...

Hope it gets fixed soon, cause i been planing a watch party with my friends online in-game.
Shadowsun™  [author] Sep 17 @ 4:00pm 
@SC_Mihai please update the add-on and try again. Changes have been made to address this issue.
SC_MihaiL Sep 17 @ 1:12pm 
i have theese errors when i request url:
[SC_MihaiL|2|STEAM_0:0:675313533] Lua Error:
[Media Player (Updated Edition)] lua/mediaplayer/services/youtube/cl_init.lua:236: bad argument #1 to 'WriteUInt' (number expected, got nil)
1. WriteUInt - [C]:-1
2. NetWriteRequest - lua/mediaplayer/services/youtube/cl_init.lua:236
3. callback - lua/mediaplayer/cl_requests.lua:96
4. onsuccess - lua/mediaplayer/services/youtube/cl_init.lua:228
5. unknown - lua/includes/modules/http.lua:29

[SC_MihaiL|2|STEAM_0:0:675313533] Lua Error:
[ERROR] Warning! A net message (MEDIAPLAYER.RequestMedia) is already started! Discarding in favor of the new message! (properties)
1. MsgStart - lua/includes/modules/properties.lua:7
2. Action - lua/autorun/properties/ignite.lua:36
3. DoClick - lua/includes/modules/properties.lua:72
4. OnMouseReleased - lua/vgui/dlabel.lua:253
5. unknown - lua/vgui/dmenuoption.lua:77

i installed x86-64 chromium and gmodpatchtool but nothing happened
Shadowsun™  [author] Sep 17 @ 10:41am 
Unfortunately, the text does not provide enough information about what the error is here. First, an important question...

Has the original Media Player add-on been disabled/removed, as otherwise it will cause conflicts!

Secondly, deactivate all add-ons except this Media Player to isolate the error.

Thirdly, what did you do before that?
N Sep 17 @ 9:40am 
me and my friend get this error when we press e on the media player:

[N|2|STEAM_0:0:580379552] Lua Error:

[Media Player (Updated Edition)] lua/includes/extensions/net.lua:234: net.ReadType: Couldn't read type 155256925
1. error - [C]:-1
2. ReadType - lua/includes/extensions/net.lua:234
3. ReadTable - lua/includes/extensions/net.lua:170
4. ReadMedia - lua/mediaplayer/players/base/net.lua:25
5. func - lua/mediaplayer/players/base/cl_init.lua:65
6. unknown - lua/includes/extensions/net.lua:34


[Uzi|3|STEAM_0:0:456905565] Lua Error:

[Media Player (Updated Edition)] lua/includes/extensions/net.lua:234: net.ReadType: Couldn't read type 21640
1. error - [C]:-1
2. ReadType - lua/includes/extensions/net.lua:234
3. ReadTable - lua/includes/extensions/net.lua:170
4. ReadMedia - lua/mediaplayer/players/base/net.lua:25
5. func - lua/mediaplayer/players/base/cl_init.lua:65
6. unknown - lua/includes/extensions/net.lua:34
Shadowsun™  [author] Sep 17 @ 1:45am 
It must meet certain criteria, otherwise it will not be played. Firstly, GmodPatchTool must be used (see workshop description). Secondly, the source must have direct access without a download portal or similar, i.e. as if you were viewing an image directly in your browser.
Yske Sep 16 @ 11:33pm 
Is there anyway to disable the media source is not supported? It's just a direct mp4 link, there shouldn't be any issues, right?
Shadowsun™  [author] Sep 16 @ 6:20pm 
Are you absolutely sure you updated the add-on? Have you uninstalled the original addon?
Cube Sep 16 @ 6:06pm 
I'm in the united states and it still doesn't work
Shadowsun™  [author] Sep 16 @ 5:26pm 
@Smak, An update (actually several attempts) has been released to solve the problem. Please write here if it happens again. Cloudflare networks are severely disrupted due to Russian Inter Providers and this will remain the case for a long time.
Smak Sep 16 @ 11:22am 
as I understand it, everyone from Russia or Belarus (which is not involved in any conflicts) still can't use the media player, I have a white screen on the video
lorenzo. Sep 15 @ 8:24am 
i just watched a full 2 hour video essay on gmod, wow.
Radixliner Sep 14 @ 2:42am 
wait, it works even the module wasnt updated https://steamcommunity.com/sharedfiles/filedetails/?id=3567949641
Radixliner Sep 14 @ 1:45am 
@Nina_Mercer there's a yermash fork that is still updated. Also, here's the source code for the media players module https://github.com/IcyStarFrost/lambda-mediaplayer-module
Shadowsun™  [author] Sep 13 @ 8:17pm 
@omniversequirk, Please update your addon, or if you are a server owner who has uploaded the add-on to the server.

Changes have been made to where and how the website data is now hosted. This has been done for performance reasons and to maintain a separate developer account for open source projects.
omniversequirk Sep 13 @ 7:29pm 
for more clarification:
It said that the github requester was having 404 errors, then when I tried to get a url manually, it said youtube was having an SSL error
Nina_Mercer Sep 12 @ 9:27am 
Yeah, i'm assuming lambda players specifically wants IDs unique to the original media player addon, and to get it working it would have to be a collaborative effort between the lambda players creator and the guys working on this one. That's just what I assume though, I might be wrong.

Iirc, lambda players is no longer being maintained, right? So it's probably not gonna happen unless someone else picks it up to make like, omega players or something.
fried on 16:9 Sep 8 @ 10:25pm 
can you please add a vote skip option where if majority votes then the video gets skipped
LilCatz1ooP Sep 8 @ 10:05am 
That's a shame, thanks for the explaining
Shadowsun™  [author] Sep 8 @ 9:57am 
Simply put, Lambda players are not real players and only pretend to be. However, in technical terms, the way the media player is programmed does not guarantee that API or metadata queries will work, as they are executed on the player/client.
LilCatz1ooP Sep 8 @ 9:21am 
question, why can't lambda players work with this addon? Just curious since the description said it can't
Shadowsun™  [author] Sep 8 @ 4:31am 
You have a better chance of finding a solution on their Discord.

https://www.solsticegamestudios.com/discord/
ishowblackish Sep 8 @ 4:19am 
i already post a issue on github but they didnt respond yet
ishowblackish Sep 8 @ 4:19am 
out of the topic but have you had any huge performance drop issue after installing GModPatchTool
cuz im have that issue, any settings i need to config to fix this problem (OS:Windows 11)?
update didnt download, say "file corrupted"
Shadowsun™  [author] Sep 6 @ 12:16pm 
You removed the original addon before this message came up, didn't you?
bulkmoerls Sep 6 @ 9:17am 
ok maybe it doesnt if i use normal media player but it still brings this error
bulkmoerls Sep 6 @ 9:15am 
[Media Player (Updated Edition)] lua/mediaplayer/services/youtube/cl_init.lua:266: bad argument #1 to 'WriteUInt' (number expected, got nil)
1. WriteUInt - [C]:-1
2. NetWriteRequest - lua/mediaplayer/services/youtube/cl_init.lua:266
3. callback - lua/mediaplayer/cl_requests.lua:96
4. onsuccess - lua/mediaplayer/services/youtube/cl_init.lua:258
5. unknown - lua/includes/modules/http.lua:29
can somebody explain this? i tried to add a video
Lucky  [author] Sep 3 @ 12:38am 
@ExceptionErrorAlex thank you for your feedback, things/mistakes happen. I feel as if the description is quite clear and well outlined. none the less is no biggie.
Lucky  [author] Sep 3 @ 12:37am 
@Daniel Betjko Adds are mostly blocked doing it in a odd way, but there isnt much we can do for it. if an add starts to play at all turn the player off and back on again by pressing e and the add will no longer be there.
Daniel Betjko Sep 2 @ 2:23am 
so is there no ads anymore? because I want to watch a video at the same exact moment
ExceptionErrorAlex Aug 31 @ 7:45pm 
@shadowsun sorry, i did look through the description but missed that part because it wasnt well accentuated/highlighted. maybe add that info to the disclaimer at the top? i didnt mean to frustrate u.
Nina_Mercer Aug 31 @ 5:45pm 
And, of course, google drive is by the same company.
Nina_Mercer Aug 31 @ 5:42pm 
What site can you put videos on? I mean, I know there's youtube, but I don't really want to deal with youtube's BS.
Shadowsun™  [author] Aug 31 @ 2:19pm 
@ExceptionErrorAlex. Twitch does not query any metadata, you forgot to disable the original Media Player add-on. Otherwise conflicts may appear, this is also stated in the description.

Unfortunately, I find it sad how people subscribe to an add-on without reading the description and then report that x does not work.
Shadowsun™  [author] Aug 30 @ 4:35pm 
YouTube will not work with VPNs and will prompt you with the message “sign in to show you're not a Bot”. Add Garry's mod to the exception list (split tunneling) of your VPN clients, nothing else can be done about it.
youtube says i gotta log in to confirm im not a bot??
I STAPLE TAPEWORMS ON MY Aug 30 @ 3:13pm 
how do you skip ads after a video ends, making it so only the ad's audio plays with no visual or skip button
Lucky  [author] Aug 25 @ 5:15am 
@MERCY_ALL just turn your own bloom down lol with the console command mat_bloomscale 0
MERCY_ALL Aug 24 @ 5:18pm 
This probably isn't possible, but is there a way you could remove bloom on the media player, to possibly fix having to much bloom to read little text, maybe a Console Variable.
Shadowsun™  [author] Aug 24 @ 4:38pm 
There is no support or compatibility for the Lamda Players add-on. This is also mentioned in the workshop description.
CaliforniaEAS Aug 24 @ 3:23pm 
does it supports Lambda Players & the Media Player Module?
Shadowsun™  [author] Aug 23 @ 11:41am 
Subtitles should actually be switched off by default, there is no built-in Option for this. Try switching off the subtitles manually on the YouTube request page (on the video self).
VinfinityGaming Aug 23 @ 8:50am 
awesome mod, but (on youtube) captions are on and i havent found a way to turn them off, if its possible, how do i turn it off?
Bongo Criminaleus Aug 22 @ 6:05am 
Ah so im not the only one who wonder if you could watch you know lol