-
Notifications
You must be signed in to change notification settings - Fork 3
Media Query
Media Query is an extension for PlayX that allows you to search YouTube right from chat and play videos conveniently from chat.
If you downloaded PlayX from GarrysMod.org, then Media Query will already be installed. If not, you can find the file “playx_media_query.lua” under the “contrib” directory — just copy that to the lua/autorun/server folder of Playx (in your addons folder), or of your server.
Media Query is controlled completely from the chat. It will only recognize messages that sent to all users (and not team-only messages). All users can utilize it, although only those who are permitted to use PlayX can actually start videos.
When a user posts a link to a YouTube video, the title of the video will be looked up and it will be printed to the chat.
The extension will keep track of the last video that someone has posted. It will also remember videos that are found via the search functions, allowing you to quickly play the “last video.”
-
!yt <query>
— Search YouTube in-game for embeddable videos, and get the first result (it will not play, though). -
!ytplay [query]
— Search YouTube, and play the first found video as well, but if you do not provide an argument/search query, then the last video will be played instead. -
!ytlisten [query]
– Works just like !ytplay, except it will put videos into low frame rate mode (for music-only videos). -
!ytlast
– Plays the last found video. -
!play <URI>
– Plays a piece of media (provider is auto-detected). -
!link <URI>
– Alias of !play. -
!playx <URI>
– Alias of !play.