[Request] Open URL in Hidden MOTD, with options
I propose / request a plug-in that will open URL's in a "hidden" MOTD window - but with various other options/controls - mostly for the purpose of playing music from streaming auto/video sites (like YouTube) - instead downloading MP3's from game-servers.
Basic concept and limitations: The basic concept and features for this plug-in would be:
Proof-of-concept work sofar: I have done some proof-of-concept work using CLFY's "Hidden MOTD URL opener" plug-in. Basically, here is what I discovered (using that plug-in on my server). Playing music from a YouTube video: I can play any YouTube video in my client in a "hidden" MOTD window, like this: Code:
sm_hiddenurl @me "https://www.youtube.com/watch?v=BdHgqPG_8mo" Code:
sm_hiddenurl @me "https://www.youtube.com/watch?v=BdHgqPG_8mo#t=90" Stopping YouTube play-back: I also discovered, that forcing that "hidden" MOTD window to re-open with any other page (even a blank page) causes the YouTube video play-back to stop. The cleanest way is to give the blank-page URI to open, like this: Code:
sm_hiddenurl @me "about:blank" Some time back, moriss created a plug-in similar to sm_play, but with "opt-out" - which has some of the basic "opt-in / opt-out" functionality. It should have two similar commands, one that is "mandatory" and one that is "optional". This would allow for certain important play-back (policy announcements, etc.) to be "mandatory", while other play-back (like music) could be "optional". It should also have a server-side CVAR that dictates if the default for new players is "opted-IN" or "opted-OUT" of stuff played with the "optional" version of the command. Obviously, there should be some sort of "stop" command - which would be ok to work regardless of whether the play command issued was the "optional" or "mandatory" version. Proposed commands / syntax:
Examples:
|
Re: [Request] In-MOTD streaming audio play-back (Yes, it IS possible!)
PS: For anybody already familiar with CLFY's "Hidden MOTD URL opener" plug-in ... to cut to the chase, this is basically about adding the various "optional / mandatory" functionality mentioned and a dedicated/hard-coded "stop" URL. That will make it more friendly to be used for streaming music and such (i.e. by giving players the option to opt-out of listening to it, etc.).
|
Re: [Request] Open URL in Hidden MOTD, with options
I was using CLFY hidden motd plugin to play music and EVERYONE kept complaining about lag.
|
Re: [Request] Open URL in Hidden MOTD, with options
Quote:
|
Re: [Request] Open URL in Hidden MOTD, with options
On the one server I have where I am experimenting with this, I have not noticed any lag induced when sounds play. However, since it is all communication between the client and YouTube's servers (or whatever other streaming source is being used) - there is a variable delay between when the game-server tells the client to open the URL, and when the media actually begins to play - as the media is "buffering". That varies greatly from one client to another.
|
All times are GMT -4. The time now is 01:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.