Anyone looking to publish a fix for this? My players enjoy listening to music while they build :/
I fixed some things tonight for gmod13 beta and maybe for normal one too if you get the getAttribute-error there too.
In gmod13 beta I can play the youtube videostream now in a browser overlay window on the hud. The only thing I can't get to work, which is the important thing for playX is to render the video on the projected screen because of the GetHTMLMaterial() function which returns nil all the time, maybe garry has to fix this first, he said it should be on svn last week, but I couldn't find it.
To fix this error: (for multiplayer it has to be done serverside)
[QUOTE]Browser Message: Uncaught TypeError: Cannot call method 'getAttribute' of null - (null):63 [/QUOTE]
It seems related to a change in youtube's html code. All you have to do is open this file:
garrysmodbeta\addons\PlayX\lua\playx\client\handlers\sites.lua
and replace all occurrences:
'video-player' with 'video-player-flash'
and
'watch-player-div' with 'player'.
I didn't test it for garrysmod non beta, but if GetHTMLMaterial() is still working there, the player should work again.
And big thanks to Xerasin, who made it almost ready for gmod13, your code helped me a lot tonight.
Is there anyway to play full-screen video's from other sites, auto detect doesn't detect the video site I am trying to stream from.
If it doesn't need to be fullscreen, you can use "Non-browsable Webpage".
What site is it? -some are already implemented but maybe broken, for the others some lua code needs to be created (a provider file and maybe some handler modification, look @ PlayX\lua\playx\providers and PlayX\lua\playx\client\handlers)
Help! PlayX worked for me few weeks ago, without any problems. But recently I started hosting a dedicated server and noticed that it stopped working for me, on the server and SP, and my friend too. I downloaded and installed the newest version several times but it didn't fix my problem
I simply see nothing. When I spawn the player entity, I see black screen. That's normal, but I see it black even when I am playing a video. I tried many videos, from URL or bookmarks or navigator, none worked. I also tried 2.5 version, which didn't fix it
I checked the troubleshooting page for seeing black/white, didn't help. Every URL in that lua file is absolutely same to the ones in that site. Also, I downloaded the flash stuff for other browsers.
[QUOTE=code_X;36912794]If it doesn't need to be fullscreen, you can use "Non-browsable Webpage".
What site is it? -some are already implemented but maybe broken, for the others some lua code needs to be created (a provider file and maybe some handler modification, look @ PlayX\lua\playx\providers and PlayX\lua\playx\client\handlers)[/QUOTE]
I don't really remember the site because I really just got a link from a friend in steam chat and I tried to play it and the player was halfway down the screen.
[QUOTE=code_X;36909713]I fixed some things tonight for gmod13 beta and maybe for normal one too if you get the getAttribute-error there too.
In gmod13 beta I can play the youtube videostream now in a browser overlay window on the hud. The only thing I can't get to work, which is the important thing for playX is to render the video on the projected screen because of the GetHTMLMaterial() function which returns nil all the time, maybe garry has to fix this first, he said it should be on svn last week, but I couldn't find it.
To fix this error: (for multiplayer it has to be done serverside)
It seems related to a change in youtube's html code. All you have to do is open this file:
garrysmodbeta\addons\PlayX\lua\playx\client\handlers\sites.lua
and replace all occurrences:
'video-player' with 'video-player-flash'
and
'watch-player-div' with 'player'.
I didn't test it for garrysmod non beta, but if GetHTMLMaterial() is still working there, the player should work again.
And big thanks to Xerasin, who made it almost ready for gmod13, your code helped me a lot tonight.[/QUOTE]
Doesn't work on GMod 12.
[QUOTE=code_X;36909713]I fixed some things tonight for gmod13 beta and maybe for normal one too if you get the getAttribute-error there too.
In gmod13 beta I can play the youtube videostream now in a browser overlay window on the hud. The only thing I can't get to work, which is the important thing for playX is to render the video on the projected screen because of the GetHTMLMaterial() function which returns nil all the time, maybe garry has to fix this first, he said it should be on svn last week, but I couldn't find it.
To fix this error: (for multiplayer it has to be done serverside)
It seems related to a change in youtube's html code. All you have to do is open this file:
garrysmodbeta\addons\PlayX\lua\playx\client\handlers\sites.lua
and replace all occurrences:
'video-player' with 'video-player-flash'
and
'watch-player-div' with 'player'.
I didn't test it for garrysmod non beta, but if GetHTMLMaterial() is still working there, the player should work again.
And big thanks to Xerasin, who made it almost ready for gmod13, your code helped me a lot tonight.[/QUOTE]
Hmm, I tried that replacement and it seems to have fixed that Uncaught TypeError but the video still doesn't play... this is in normal gmod not beta.
If I uncheck the use jw player box and try to play a youtube video I get this, maybe it means something. PlayX is a little over my head when it comes to my limited knowledge of lua, lol.
[quote]PlayX DEBUG: Page loaded, preparing to inject
Browser Message: Uncaught TypeError: Cannot set property 'cssText' of undefined - (null):2[/quote]
I tried it too on 12 today (with the getAttribute-fix). All I get is a black screen, but I can hear the sound. It seems 12 has the same issue than 13. But there must be some fix available: on some Theatre-Server where I was playing, they got a working playX. Maybe someone could tell how they fixed it, sure I could take a look into cache/dua folder, but I don't want to steal any code from them, even if they used the playX code base.
[QUOTE=code_X;36937745]I tried it too on 12 today (with the getAttribute-fix). All I get is a black screen, but I can hear the sound. It seems 12 has the same issue than 13. But there must be some fix available: on some Theatre-Server where I was playing, they got a working playX. Maybe someone could tell how they fixed it, sure I could take a look into cache/dua folder, but I don't want to steal any code from them, even if they used the playX code base.[/QUOTE]
you should do it
Playx is fixed :smile:
Fixed? Yay! Now to decide if I should get the latest stable version or 2.x -.-
[QUOTE=Hyperion01;36957420]Fixed? Yay! Now to decide if I should get the latest stable version or 2.x -.-[/QUOTE]
For me i just download the playx from garrysmod.org and it work
edit: I was using the svn sorry.
[QUOTE=wizwar134;36960605]For me i just download the playx from garrysmod.org and it work[/QUOTE]
Let's hope so.
[QUOTE=wizwar134;36960605]For me i just download the playx from garrysmod.org and it work[/QUOTE]
But it's not through SVN
Still doesn't work for me. I tried the latest stable and beta SVNs, and the garrysmod.org one :(
[QUOTE=maciozo;36976462]Still doesn't work for me. I tried the latest stable and beta SVNs, and the garrysmod.org one :([/QUOTE]
Go one page backwards. Garry said that he will update Gmod on Monday, perhaps it'll fix the problem. He also said that you should get flash for Chrome but it says that it already has the flash and downloading flash through the PlayX navigator isn't possible I think, so you should just wait till Monday, like me
hmm, ok thanks
Downloaded the latest version from garrysmod.org.
It works. The bookmarks sometimes not, but other that that it works.
..For me.
So this works again on the beta? I went to look at the info page on the Workshop for it and it says it's removed but still shows up in search. Not sure if I can redownload it.
No :P I has only sound D:
Yeah, it doesn't work. On mine it doesn't even load the damn video and it's getting an error related to providers and saying Get is a nil value.
2.6 didn't work neither did any older versions...
Mine lags like hell, like 3-5 fps when playing a video (even on the radio prop)
AMD Athlon 2.2ghz SC
Radeon HD4650 1gb
2gb RAM
Windows XP SP2 32bit
I run Gmod fine on max details, just with anti aliasing on 2x
[B]Edit: Everything I changed was merged back [/B][B]to sk89q's master branch. You can find [URL="http://www.facepunch.com/showthread.php?t=927313&p=21487894&viewfull=1#post21487894"]download links in his first post[/URL].
[del]Update for garrysmod13 [U]beta[/U][/B]
I did a few fixes tonight for garrysmod13 beta, based on the fork of Xerasin, who did already a few beta fixes.
Don't merge the Beta-branch back into the master branch yet, this will only work with garrysmod 13 beta, because there are some changes that are not backwards compatible.
I tested only youtube videos with Options/Administrator/Open (with use an improved player option checked) and using Bookmarks. Video was playing nicely, and radio function did work too, navigator does open. [/del]
[del]You can check the fork ([URL="https://github.com/X-Coder/playx/tree/Beta"]Beta branch[/URL]) out on github or just [URL="https://github.com/X-Coder/playx/zipball/Beta"]download the zip[/URL] and move the folder src/playx into your addons folder.[/del]
[B]A few bugs are still open for bugfixing (anyone who can help)[/B]:
-[del]bookmarks don't save[/del]
[del]-"Volume" change seems not to have any effect[/del]
[del]-settings for "Enabled" not working, Video keeps playing invisble in background (broken again because of garry's new Awesomium-pooling that don't stop/unload removed HTML-panels, need to find a workaround. I reported it but garry don't care and closed my thread.)[/del]
-[del]with multiplayer it seems the client side files wouldn't either be send or couldn't be find, so the clients have to install the addon manually as long this is not fixed[/del]
-clicking in the navigator doesn't open the video with playX-projector, instead it plays inside the navigator. (At the moment I can't parse the URL of the navigator-panel)
-[del]!ytplay seems not to work yet - the chat-hook is maybe broken, didn't checked that yet.[/del] (It worked only on teamchat, changed it back to global chat)
-sometimes the video has the wrong scaling -> happens after disabled/re-enabling playX from settings
Edit: It is ready for dedicated servers and workshop (still with the bugs listed above)
[QUOTE=code_X;37164115][B]Update for garrysmod13 [U]beta[/U][/B]
I did a few fixes tonight for garrysmod13 beta, based on the fork of Xerasin, who did already a few beta fixes.
Don't merge the Beta-branch back into the master branch yet, this will only work with garrysmod 13 beta, because there are some changes that are not backwards compatible.
I tested only youtube videos with Options/Administrator/Open (with use an improved player option checked) and using Bookmarks. Video was playing nicely, and radio function did work too, navigator does open.
You can check the fork ([URL="https://github.com/X-Coder/playx/tree/Beta"]Beta branch[/URL]) out on github or just [URL="https://github.com/X-Coder/playx/zipball/Beta"]download the zip[/URL] and move the folder src/playx into your addons folder.
[B]A few bugs are still open for bugfixing[/B]:
-clicking in the navigator doesn't open the video with playX-projector, instead it plays inside the navigator. (At the moment I can't parse the URL of the navigator-panel)
-!ytplay seems not to work yet - the chat-hook is maybe broken, didn't checked that yet.[/QUOTE] Yay!
Thanks!
Updated, ready for garrysmod 13 beta dedicated servers and first workshop usage. Tested on latest Gmod13-SVN.
For download and open buglist see [URL="http://www.facepunch.com/showthread.php?t=927313&p=37164115&viewfull=1#post37164115"]here[/URL].
For dedicated server owners: just put the folder "src/PlayX" from the github download/checkout into srcd's garrysmod/addon/ folder like with garrysmod < 13 until it's available in workshop. Clientside files getting downloaded automatic.
How do I uninstall it, lol.
[B]It would be cool if you could toggle between on/ off pressing action keyboard button ("E" by defect) on the prop. It's just so annoying having to open a window in mid of the game. This is the only player addon which works for me actually, so I appreciate the work anyway.[/B]
Hey This mod doesn't work for me it used to work before this update. I am on a MAC and it just shows up as a black screen and nothing happens. Someone help me please! D: also i got this in console
PlayX DEBUG: Metadata received
Sorry, you need to Log In to post a reply to this thread.