• PlayX media player
    191 replies, posted
  • Avatar of sk89q
  • ___ NEW VERSION: [url]http://www.facepunch.com/showthread.php?t=927313[/url] ___ [B]PlayX[/B] is a in-game media player that can play YouTube videos, Livestream channels, Flash movies, MP3, FLV, MP4, and AAC files, images, and Vimeo videos. Users who join your server after a video has started will be able to see video, right from the point where the video is for everyone else. [B]Features:[/B] [LIST] [*]YouTube videos, Livestream channels, Flash movies, MP3, FLV, MP4, and AAC files, images, and Vimeo videos can be played [LIST] [*]Select a particular provider, or let PlayX automatically detect that information from the URL [*]PlayX can be extended to play videos from other providers [*]YouTube videos can be played in a custom player that contains no pesky advertisements, and also likewise, no annotations and captions [LIST] [*]The custom media player can be disabled on a case-by-case basis [/LIST] [*]Certain types of media (music files and images) are automatically put into a low frame rate mode that tells clients to render the video at 1 FPS, to prevent unnecessary reduce frame rate drop [LIST] [*]Any piece of media can be forced into low frame rate mode [/LIST] [*]Flash movies will be "forced play" so that they can be played in the player even if you would normally have to press a "Play" button [/LIST] [*]The screen can be drawn on a prop or projected from a projector model [LIST] [*]Available non-projector props are Counter-Strike: Source screens, and one projector is from CS:S [*]Another projector is the Gmod camera model, so anyone can watch the video with no needed addons or games [*]Any model can be used for the player even if the screen coordinates are not explicitly defined, although support varies, and it best works on (some) PHX plate models [*]The projector screen is the same size as the projector screens in IamMcLovin's YouTube player, allowing for easy replacement of the projector in an adv. dupe file [/LIST] [*]Videos can be resumed (support varies between providers) [LIST] [*]Users can hide the player (where resume is supported), and restart the player, resuming the video from where it 'would be' for everyone else [*]Users who join after the video start can see the video from the point where it would be for everyone else [*]Videos can be started at a certain point in the video other than the beginning [*]Should the server clear of administrators, the player will automatically stop the video after a delay to prevent the video from continuing to load for everyone that joins [/LIST] [*]The currently playing media can be ended prematurely [LIST] [*]The video can be automatically stopped when it ends if it is a YouTube video [LIST] [*]Configurable grace period after the video ends so that users who may have had short buffering issues can still enjoy the video until the end [*]This feature can be disabled completely, or disabled on a video-by-video basis [/LIST] [/LIST] [*]Clients can adjust the frame rate of the screen as well as the volume of the video (support varies between providers) [LIST] [*]The player can be disabled altogether by a client, and the setting will persist between sessions [LIST] [*]If the player is disabled, the user will see a message on the screen reminding the user on how to re-enable the player [*]When a video is started, and the user has the player disabled, a notice will be printed to their chat reminding them that they have the player disabled [/LIST] [/LIST] [*]Protection against Gmod freezes (where you hear a click and water sound upon returning to Gmod) that will keep the video continuing to play [LIST] [*]If the projector screen starts to appear only if the projector prop is in view, a button on the PlayX settings tool menu panel will correct that issue [/LIST] [*]PlayX is extensible [LIST] [*]More providers can be added to PlayX [*]PlayX contains both client-side and server-side APIs [*]By default, PlayX checks whether you are an administrator on the server before giving access, but this can be overrided with a custom authorization routine [/LIST] [/LIST] [B]Screenshots:[/B] [IMG]http://img37.imageshack.us/img37/7632/ss1gn.jpg[/IMG] [IMG]http://img37.imageshack.us/img37/6454/entities.png[/IMG] [IMG]http://img37.imageshack.us/img37/8620/administrate.png[/IMG] [IMG]http://img37.imageshack.us/img37/9919/settingso.png[/IMG] Here is a video, created by GetOutOfBox: [URL]http://www.youtube.com/watch?v=qYx9IxaQVv0[/URL] [B]Download:[/B] [URL="http://www.garrysmod.org/downloads/?a=view&id=88535"][IMG]http://www.garrysmod.org/img/?t=dll&id=88535[/IMG][/URL] This is the easy install version of PlayX. Just drop the PlayX folder in the ZIP file into your addons folder. The YouTube/Media Query extension is also automatically installed, allowing you to search YouTube right from chat! You can find the easy install version of PlayX but without the Media Query extension at: [URL]http://cloud.github.com/downloads/sk89q/playx/playx-1.0-garrysmod.org-no-mq.zip[/URL] [B]How to Use:[/B] [LIST] [*][URL="http://wiki.github.com/sk89q/playx/usage"]Instructions and Usage[/URL] [*][URL="http://wiki.github.com/sk89q/playx/frequently-asked-questions"]Frequently Asked Questions[/URL] [/LIST] [B]Developers:[/B] There is a [URL="http://wiki.github.com/sk89q/playx/api"]well-documented API[/URL] and an [URL="http://wiki.github.com/sk89q/playx/callbacks"]authorization override callback[/URL]. PlayX is released under the GPLv2, and you can find the source code at: [URL]http://wiki.github.com/sk89q/playx[/URL] Thanks to IamMcLovin for the idea (with his YouTube player) and for answering a question I had. [B]Future Versions:[/B] Development has ceased (and so has most of my Gmod playing), but PlayX is open source, so anyone is free to continue with the project. The version that was in development had quite a few substantial additions that are not currently found in the officially released stable version, so you have a "head start." For more information, please see: [URL]http://www.facepunch.com/showpost.php?p=20517854&postcount=149[/URL]
  • Avatar of CapsAdmin
  • This sounds promising. :) [editline]01:57AM[/editline] hm, it just shows the screen with a red cross in the corner for me. [code] PlayX: Beginning media http://www.youtube.com/watch?v=GGP4BHR-iBY with handler JW, start at 0s PlayX DEBUG: Begin media message received PlayX: Playing http://www.youtube.com/watch?v=GGP4BHR-iBY using handler JW [/code]
  • Avatar of sk89q
  • [QUOTE=CapsAdmin;19220703]This sounds promising. :) [editline]01:57AM[/editline] hm, it just shows the screen with a red cross in the corner for me. [code] PlayX: Beginning media http://www.youtube.com/watch?v=GGP4BHR-iBY with handler JW, start at 0s PlayX DEBUG: Begin media message received PlayX: Playing http://www.youtube.com/watch?v=GGP4BHR-iBY using handler JW [/code][/QUOTE] Post a screenshot if you can. Also, try unchecking the "Use JW player when applicable" checkbox to see if changes anything. Then tell me your operating system and Internet Explorer version. [QUOTE=Medevilae;19220906]Wow. Nice. Is the sound it emits local, or does everyone hear it?[/QUOTE] Everyone hears it. It still depends on ol ' Internet Explorer and the HTML control to play videos.
  • Avatar of CapsAdmin
  • Oh. For some reason internet explorer doesn't have flash or something on my computer. Fixed it by installing it. My bad.
  • Avatar of sk89q
  • That's on my maybe-to-do list. I played with gm_chrome today, though I couldn't get it working. I'll look into it at another time.
  • Avatar of aualin
  • I have to applaud the decision to license it under GPL. Looks amazing, especially the project/camera!
  • Avatar of Wizard of Ass
  • I still prefer ingame chrome browser... Even it requiers the awesomnium.dll and much more... It doesn't drop the framerate as hell, it can play any video formats and you can really use for internet stuff.
  • Avatar of sk89q
  • [QUOTE=Helimaster;19284766]How does the camera work? :o[/QUOTE] It just acts like a projector would. The screen gets put onto the plane of whatever the camera is facing. [QUOTE=Wizard of Ass;19289021]I still prefer ingame chrome browser... Even it requiers the awesomnium.dll and much more... It doesn't drop the framerate as hell, it can play any video formats and you can really use for internet stuff.[/QUOTE] Well, it's not a browser. It's a player that lets you share media [i]with other people[/i]. Personally, I don't bother. I play Gmod windowed, so I can just alt-tab out.
  • Avatar of Wizard of Ass
  • [QUOTE=sk89q;19291029]It just acts like a projector would. The screen gets put onto the plane of whatever the camera is facing. Well, it's not a browser. It's a player that lets you share media [i]with other people[/i]. Personally, I don't bother. I play Gmod windowed, so I can just alt-tab out.[/QUOTE] Oh if you use the chrome browser with wire inputs everybody can see everything...
  • Avatar of sk89q
  • Not if they don't have gm_chrome installed, which most people don't. I didn't even have it installed myself until the other day.
  • Avatar of Grocel
  • [QUOTE=Wizard of Ass;19291473]Oh if you use the chrome browser with wire inputs everybody can see everything...[/QUOTE] I did one with wire inputs and outputs, but it's relay early and some of them (most outputs) are not working right yet. :)
  • Avatar of Tayg0
  • Thank god, I've been waiting for a decent music player that can play any mp3 link! Gj man, and thanks!
  • Avatar of sk89q
  • [QUOTE=Axelite;19313114]I dont get it. How do you download this?[/QUOTE] Click the "download" button, and inside the ZIP fille, there will be a gmod-XXXXXXXX folder. Inside that folder will be a src folder. Then in that gmod-XXXXXXXX/src folder is a "PlayX" folder. You need to put that folder into your addons directory. I'll make a easier to understand download soon enough. Wire I/O is something I plan for eventually. Input will be disabled by default though, but it will be toggleable with a cvar. It is presently possible to start media via a console command, and thus E2, but the syntax of the command may change in the future, so I do not recommend using it. One console command that I didn't mention much was playx_spawn <model> though. That lets you use any prop as the screen, although it doesn't work very well for most props sans the PHX plates. It's also not safe to rely on any non-PHX plate model, as I may change the screen placement algorithm in the future.
  • This media player works great.Thanks.But i can't make it visible for other players on server.In description i see it avaiable but how to enable it?
  • Ah, thanks. Works great, but what i'm missing is a list of videos/tracks that you can save like with the youtube player.
  • Avatar of sk89q
  • [QUOTE=Axelite;19327530]Ah, thanks. Works great, but what i'm missing is a list of videos/tracks that you can save like with the youtube player.[/QUOTE] Oh so that's what that did. I was wondering about that.
  • Avatar of Samantha Fangs
  • You cant save things with the Youtube player. Ive been using gmod a long time and when i used youtube played there was no save videos in it.