Garry's Mod

Garry's Mod

Media Player (Updated Edition)
397 Comments
MERCY_ALL 1 hour ago 
I found a peculiar bug, the Youtuber 7-ElevenZ gives me the text "Request failed: Video is age-restricted or unplayable for unknown reasons. It lets me watch the video, just not request the url to the Media Player. I have little understanding and little care. I don't care about this very much.
StrawWagen 20 hours ago 
Same with mediaplayer_mute_unfocused
Should be 1 by default but kinda silly it doesn't have a widget lol
Great changes overall tho, would be crazy if you added wire inputs next haha
StrawWagen 20 hours ago 
3daudio is cool, would be better if it had a GUI widget for the command to turn it on/off tho( or maybe it should be easier to find, if there already is one? ), kinda breaks on large mediaplayers from the extension addon, and bigger theatre builds
Shadowsun™  [author] 23 hours ago 
@Rust, It exists, but you don't have to use it. The add-on is available to everyone.

If you don't like it, don't use it. Period.
Rust 8 Oct @ 4:39pm 
Um,,, Why is an alt-right video platform supported with this? I'm concerned.
its eternity in there 7 Oct @ 6:56am 
Can you take a look at my Github pull request when you have the time, thanks.
Shadowsun™  [author] 6 Oct @ 7:12am 
Could you tell me if the MKV is linked directly without a website in between? And did you also use GmodPatchTool?
im trying to play a .mkv file through google drive but it says "An unexpected error occurred. Please try again later.", is there any fix for that?
MERCY_ALL 4 Oct @ 6:40pm 
I have a suggestion, If you press the "Request URL" Button with right click, it won't close the panel, that way you can select many at a time.
fried on 16:9 1 Oct @ 10:02am 
can we get a vote skip option please that is toggleable.
Shadowsun™  [author] 22 Sep @ 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 22 Sep @ 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 21 Sep @ 11:25am 
wow now I can watch Markiplier in Gmod:steamhappy:
SC_MihaiL 18 Sep @ 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] 18 Sep @ 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 18 Sep @ 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] 17 Sep @ 4:00pm 
@SC_Mihai please update the add-on and try again. Changes have been made to address this issue.
SC_MihaiL 17 Sep @ 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] 17 Sep @ 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 17 Sep @ 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] 17 Sep @ 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 16 Sep @ 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] 16 Sep @ 6:20pm 
Are you absolutely sure you updated the add-on? Have you uninstalled the original addon?
Cube 16 Sep @ 6:06pm 
I'm in the united states and it still doesn't work
Shadowsun™  [author] 16 Sep @ 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 16 Sep @ 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
johnnyy 15 Sep @ 8:24am 
i just watched a full 2 hour video essay on gmod, wow.
Radixliner 14 Sep @ 2:42am 
wait, it works even the module wasnt updated https://steamproxy.com/sharedfiles/filedetails/?id=3567949641
Radixliner 14 Sep @ 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] 13 Sep @ 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 13 Sep @ 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 12 Sep @ 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 8 Sep @ 10:25pm 
can you please add a vote skip option where if majority votes then the video gets skipped
LilCatz1ooP 8 Sep @ 10:05am 
That's a shame, thanks for the explaining
Shadowsun™  [author] 8 Sep @ 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 8 Sep @ 9:21am 
question, why can't lambda players work with this addon? Just curious since the description said it can't
Shadowsun™  [author] 8 Sep @ 4:31am 
You have a better chance of finding a solution on their Discord.

https://www.solsticegamestudios.com/discord/
ishowblackish 8 Sep @ 4:19am 
i already post a issue on github but they didnt respond yet
ishowblackish 8 Sep @ 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] 6 Sep @ 12:16pm 
You removed the original addon before this message came up, didn't you?
bulkmoerls 6 Sep @ 9:17am 
ok maybe it doesnt if i use normal media player but it still brings this error
bulkmoerls 6 Sep @ 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] 3 Sep @ 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] 3 Sep @ 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 2 Sep @ 2:23am 
so is there no ads anymore? because I want to watch a video at the same exact moment
ExceptionErrorAlex 31 Aug @ 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 31 Aug @ 5:45pm 
And, of course, google drive is by the same company.
Nina_Mercer 31 Aug @ 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] 31 Aug @ 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.