• PlayX 2.x Media Player
    256 replies, posted
Ah, it appears to be a bug associated with playx_expire. Open that file and on that line, change: [code] length = length + GetConVar("playx_expire"):GetFloat() -- Pad length[/code]to [code]local length = data.Length + GetConVar("playx_expire"):GetFloat() -- Pad length[/code]
That fixed the error, but I'm unable to play anything unless gm_chrome is disabled or "non-browsable webpage" is selected.
Try disabling the JW player and see if that changes anything. Have you tried Vimeo? Images? Post of the value of playx_jw_url here. ---- On another note, Gmod beta! No gm_chrome: [img]http://img24.imageshack.us/img24/5862/gmflatgrass0002a.jpg[/img]
New version 2.2 to make PlayX work better on Gmod 12. 2.1 works flawlessly for some people (everyone but me it seems), but the update makes it a bit more compatible. There were also quite a few bug fixes in 2.2. [URL="http://www.garrysmod.org/downloads/?a=view&id=102583"][IMG]http://www.garrysmod.org/img/?t=dll&id=102583[/IMG][/URL]
[QUOTE=sk89q;22971382]New version 2.2 to make PlayX work better on Gmod 12. 2.1 works flawlessly for some people (everyone but me it seems), but the update makes it a bit more compatible. There were also quite a few bug fixes in 2.2. [URL="http://www.garrysmod.org/downloads/?a=view&id=102583"][IMG]http://www.garrysmod.org/img/?t=dll&id=102583[/IMG][/URL][/QUOTE] Sadly I'm Still getting a black screen which i tried in Single player but havn't tested it on my server, Is the Datastream fix still required for it to work?
The datastream fix doesn't apply if you are in SP, and I don't think it's a problem anymore, so that's not it. Have you tried playing videos with JW player disabled?
[QUOTE=sk89q;22980526]The datastream fix doesn't apply if you are in SP, and I don't think it's a problem anymore, so that's not it. Have you tried playing videos with JW player disabled?[/QUOTE] No, but i'll give that a try now. EDIT: No Change but that was in single player, I'll give it a try on my server and see if that changes anything.
Add me on Steam: sk89q.
Sometimes the sound will stop working for some people until they restart GMod.
Does this happen when the video changes? I've heard from others that that happens, and it may even crash Gmod right afterwards. Worse comes to worse, and if the problem is because the page changes, I can keep the page static and just do Lua<->HTML panel communication to change the video.
Could you re-add the ability to change the FPS? Sometimes we use the player to just play music off of youtube and there is no point in having high FPS for music.
The FPS setting no longer has any effect. Try it yourself with playx_fps in console. Edit: I don't know if I ripped out the part that makes playx_fps has effect.
It doesn't work for me. I installed the flash and did all but still i get this error in console pcmod\sh_datastream.lua:65: bad argument #1 to 'format' (string expected, got CRecipientFilter)
PCMod conflicts with PlayX because PCMod uses an old version of something that comes with Gmod. Put this in lua/autorun/rcpfilter.lua: [code]local rcpFilterMt = FindMetaTable("CRecipientFilter") function rcpFilterMt:IsValid() return true end[/code] If that doesn't fix it, open up lua/pcmod/sh_datastream.lua (in your PCMod folder) and find "if rt == "CRecipientFilter" then". Change "RecipientFilter" to "CRecipientFilter".
[QUOTE=sk89q;23084735]PCMod conflicts with PlayX because PCMod uses an old version of something that comes with Gmod. Put this in lua/autorun/rcpfilter.lua: [code]local rcpFilterMt = FindMetaTable("CRecipientFilter") function rcpFilterMt:IsValid() return true end[/code] If that doesn't fix it, open up lua/pcmod/sh_datastream.lua (in your PCMod folder) and find "if rt == "CRecipientFilter" then". Change "RecipientFilter" to "CRecipientFilter".[/QUOTE] changing recipient filter worked, but now i only hear sound like in the other addon of youtube player, this time i get this error entities/gmod_playx/cl_init.lua:300: attempt to call method 'StartAnimate' (a nil value) EDIT: I hear the sound but it is black, and same error comes for stoping the video. Timer Error: entities/gmod_playx/cl_init.lua:433: attempt to call method 'StopAnimate' (a nil value)
Hmm. I'm not sure, BUT wait until the next PlayX update. I will be releasing a very important PlayX update (to coincide with the newest Gmod update) within this week, so be sure to be on the lookout!
[QUOTE=sk89q;23136266]Hmm. I'm not sure, BUT wait until the next PlayX update. I will be releasing a very important PlayX update (to coincide with the newest Gmod update) within this week, so be sure to be on the lookout![/QUOTE] Great! I hope that one will work, finally i could rick roll my friend online hehe.
[B]2.5-beta:[/B] [LIST] [*][url=http://github.com/downloads/sk89q/playx/playx-2.5beta-garrysmod.org.zip]playx-2.5beta-garrysmod.org.zip[/url] (the version you'd find on garrysmod.org) [*][url=http://github.com/downloads/sk89q/playx/playx-2.5beta.zip]playx-2.5beta.zip[/url] [/list] It's NOT in the beta channel SVN (yet) because Google Code is failing to commit. [B]What's new?[/B] [LIST] [*]Updated for the newest Gmod update for better stability and compatibility. [*]Restored low framerate functionality. [*]Added [B]Hulu (experimental) and justin.tv[/B] support. [*]Added more screen models. [*]Added PlayX repeater entity. [*]"Copy to Administrate" menu option added for bookmarks. [*]"Add as Bookmark" button on the Administrate panel added. [*]Added in a workaround for PCMod's bundling of an outdated datastream. [*]New default bookmarks! [*]Updated news window to be smaller and pop external links out in the Steam browser. [*]Provider and handlers are now sent down the line and loaded automatically. [*]Made PlayX less noisy regarding debugging messages. [*]PlayX is now (theoretically) non-sandbox friendly. [*]API: Added PlayXIsPermitted hook. [*]API: Added PlayX.ResolveProvider(). [*]Internal: Library functions moved to playxlib. [/LIST] [B]Screenshots:[/B] [IMG]http://img816.imageshack.us/img816/6513/playx4.png[/IMG] [IMG]http://img816.imageshack.us/img816/151/playx1.jpg[/IMG] [IMG]http://img816.imageshack.us/img816/9259/playx2.jpg[/IMG] [IMG]http://img816.imageshack.us/img816/8070/playx3.jpg[/IMG]
[QUOTE=sk89q;23184198][B]2.5-beta:[/B] [LIST] [*][url=http://github.com/downloads/sk89q/playx/playx-2.5beta-garrysmod.org.zip]playx-2.5beta-garrysmod.org.zip[/url] (the version you'd find on garrysmod.org) [*][url=http://github.com/downloads/sk89q/playx/playx-2.5beta.zip]playx-2.5beta.zip[/url] [/list] It's NOT in the beta channel SVN (yet) because Google Code is failing to commit. [B]What's new?[/B] [LIST] [*]Updated for the newest Gmod update for better stability. [*]Restored low framerate functionality. [*]Added [B]Hulu (experimental) and justin.tv[/B] support. [*]Added more screen models. [*]Added PlayX repeater entity. [*]"Copy to Administrate" menu option added for bookmarks. [*]"Add as Bookmark" button on the Administrate panel added. [*]Added in a workaround for PCMod's bundling of an outdated datastream. [*]New default bookmarks! [*]Updated news window to be smaller and pop external links out in the Steam browser. [*]Provider and handlers are now sent down the line and loaded automatically. [*]Made PlayX less noisy regarding debugging messages. [*]PlayX is now (theoretically) non-sandbox friendly. [*]API: Added PlayXIsPermitted hook. [*]API: Added PlayX.ResolveProvider(). [*]Internal: Library functions moved to playxlib. [/LIST] [B]Screenshots:[/B] [IMG]http://img816.imageshack.us/img816/6513/playx4.png[/IMG] [IMG]http://img816.imageshack.us/img816/151/playx1.jpg[/IMG] [IMG]http://img816.imageshack.us/img816/9259/playx2.jpg[/IMG] [IMG]http://img816.imageshack.us/img816/8070/playx3.jpg[/IMG][/QUOTE] Awesome! Keep it up! :cheers:
OMG unbeliviable. Now i get playx/playx.lua:439: attempt to call field 'GetHumans' (a nil value) I just quit, it will never work for me.
Ugh. It's a beta for a reason ;) Open up that file up and change: [code] --filter = RecipientFilter() --filter:AddAllPlayers() -- PCMod is a piece of crap filter = player.GetHumans()[/code] to [code] filter = RecipientFilter() filter:AddAllPlayers()[/code]
[QUOTE=sk89q;23186851]Ugh. It's a beta for a reason ;) Open up that file up and change: [code] --filter = RecipientFilter() --filter:AddAllPlayers() -- PCMod is a piece of crap filter = player.GetHumans()[/code] to [code] filter = RecipientFilter() filter:AddAllPlayers()[/code][/QUOTE] OMG!!! Now i get pcmod\sh_datastream.lua:65: bad argument #1 to 'format' (string expected, got nil) I hate pc mod EDIT: when i use jw player i get an ultra noob console spam (thats how i call it) entities/gmod_playx/cl_init.lua:340: attempt to call method 'GetHTMLMaterial' (a nil value) Without i get datastream error like in the start of reply.
You do have the very latest Gmod update? Try using PlayX without PCMod installed.
So far things are working perfectly on both my server and Singleplayer, I had a small problem with a fair amount of uploads on tinypic, But most of those a resized for a certain forum I go to so thats probably the cause for that. I especially like the models you've included, the resolution for pictures and video's on the computer screens are a little small but It doesn't bother me that badly. I'm very Impressed with the mod and it might get a few more people on my server for a movie night or something... So again, Thank you.
Good to hear. What happened with the uploads? Didn't show?
Some people appear to be having consistent crashes with Webkit + PlayX, so if you are one of these lucky few people (or know someone with that problem), download this zip and put the Lua file into your garrysmod/lua folder: [url]http://playx.sk89q.com/tools/playx_crash_debug.zip[/url] Start a single player game and then run in console: [code]lua_openscript_cl playx_crash_debug.lua[/code] Read the instructions. [b][u]Remember to close console![/u][/b] PlayX is not required for the test.
[img_thumb]http://img80.imageshack.us/img80/1043/metastruct0042.jpg[/img_thumb]
Yeah, PlayX is destroying webpages. I plan on looking into it.
Bugs/issues: [LIST] [*]Media Query: !playx seems to take anything, even invalid URLs (or maybe some provider is accepting the links) [*]Webpages are being destroyed by PlayX [*]Steam thinking it's in offline mode but not really + PlayX = Flash dialogs (not that this should be a common combination) [*]Shoutcast provider is too stringent about URLs [*]Need to implement crash detection to disable PlayX automatically [*]Need warnings about missing Flash Player [/LIST] If anyone has any other issues to report, do tell. I plan on making another beta sometime this week.
Please, have my babies.
Sorry, you need to Log In to post a reply to this thread.