___
NEW VERSION:
http://www.facepunch.com/showthread.php?t=927313
___
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.
Features:- YouTube videos, Livestream channels, Flash movies, MP3, FLV, MP4, and AAC files, images, and Vimeo videos can be played
- 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
- The custom media player can be disabled on a case-by-case basis
- 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
- Any piece of media can be forced into low frame rate mode
- 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
- The screen can be drawn on a prop or projected from a projector model
- 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
- Videos can be resumed (support varies between providers)
- 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
- The currently playing media can be ended prematurely
- The video can be automatically stopped when it ends if it is a YouTube video
- 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
- Clients can adjust the frame rate of the screen as well as the volume of the video (support varies between providers)
- The player can be disabled altogether by a client, and the setting will persist between sessions
- 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
- Protection against Gmod freezes (where you hear a click and water sound upon returning to Gmod) that will keep the video continuing to play
- 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
- PlayX is extensible
- 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
Screenshots:
Here is a video, created by GetOutOfBox:
http://www.youtube.com/watch?v=qYx9IxaQVv0
Download:
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:
http://cloud.github.com/downloads/sk....org-no-mq.zip
How to Use:
Developers:
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:
http://wiki.github.com/sk89q/playx
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:
http://www.facepunch.com/showpost.ph...&postcount=149