PlayX media player


PlayX 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.

[li]YouTube videos, Livestream channels, Flash movies, MP3, FLV, MP4, and AAC files, images, and Vimeo videos can be played[/li][LIST]
[li]Select a particular provider, or let PlayX automatically detect that information from the URL[/li][li]PlayX can be extended to play videos from other providers[/li][li]YouTube videos can be played in a custom player that contains no pesky advertisements, and also likewise, no annotations and captions[/li][LIST]
[li]The custom media player can be disabled on a case-by-case basis[/li][/ul]

[li]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[/li][ul]
[li]Any piece of media can be forced into low frame rate mode[/li][/ul]

[li]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[/li][/LIST]

[li]The screen can be drawn on a prop or projected from a projector model[/li][ul]
[li]Available non-projector props are Counter-Strike: Source screens, and one projector is from CS:S[/li][li]Another projector is the Gmod camera model, so anyone can watch the video with no needed addons or games[/li][li]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[/li][li]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[/li][/ul]

[li]Videos can be resumed (support varies between providers)[/li][ul]
[li]Users can hide the player (where resume is supported), and restart the player, resuming the video from where it ‘would be’ for everyone else[/li][li]Users who join after the video start can see the video from the point where it would be for everyone else[/li][li]Videos can be started at a certain point in the video other than the beginning[/li][li]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[/li][/ul]

[li]The currently playing media can be ended prematurely[/li][ul]
[li]The video can be automatically stopped when it ends if it is a YouTube video[/li][LIST]
[li]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[/li][li]This feature can be disabled completely, or disabled on a video-by-video basis[/li][/ul]


[li]Clients can adjust the frame rate of the screen as well as the volume of the video (support varies between providers)[/li][ul]
[li]The player can be disabled altogether by a client, and the setting will persist between sessions[/li][LIST]
[li]If the player is disabled, the user will see a message on the screen reminding the user on how to re-enable the player[/li][li]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[/li][/ul]


[li]Protection against Gmod freezes (where you hear a click and water sound upon returning to Gmod) that will keep the video continuing to play[/li][ul]
[li]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[/li][/ul]

[li]PlayX is extensible[/li][ul]
[li]More providers can be added to PlayX[/li][li]PlayX contains both client-side and server-side APIs[/li][li]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[/li][/ul]



Here is a video, created by GetOutOfBox:


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:

How to Use:

[li]Instructions and Usage[/li][li]Frequently Asked Questions[/li][/ul]

There is a well-documented API and an authorization override callback.

PlayX is released under the GPLv2, and you can find the source code at:

Thanks to IamMcLovin for the idea (with his YouTube player) and for answering a question I had.

Future Versions:

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:

Very interesting, need to check it out

This sounds promising. :slight_smile:


hm, it just shows the screen with a red cross in the corner for me.

PlayX: Beginning media with handler JW, start at 0s
PlayX DEBUG: Begin media message received
PlayX: Playing using handler JW

Wow. Nice.

Is the sound it emits local, or does everyone hear it?

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.

Everyone hears it. It still depends on ol ’ Internet Explorer and the HTML control to play videos.

Oh. For some reason internet explorer doesn’t have flash or something on my computer. Fixed it by installing it.

My bad.

Add a feature if chrome exists it’ll use that.

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.

This looks exceptional so far.

I have to applaud the decision to license it under GPL.
Looks amazing, especially the project/camera!

How do you install this? It’s confusing.

What? Put in addons???

There’s a folder in src. Put that folder in your addons folder.

How does the camera work? :o

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.

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 with other people.

Personally, I don’t bother. I play Gmod windowed, so I can just alt-tab out.

Oh if you use the chrome browser with wire inputs everybody can see everything…

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.

I’ve been using this on my server, it’s really cool.

Screw youtube player, this is the bomb! Time for a theater gamemode.