View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-18-2018 , 03:20   Re: Advanced ShowMOTDPanel
Reply With Quote #28

Quote:
Originally Posted by Dragokas View Post
Is MOTD support callbacks like if I would like to receive an event when flash player finished playing the music?

I am using Disco plugin.
And I don't like it looping the track instead of playing tracklist.

[...]
Nope; as far as I can tell a page can't make the client send callback actions by itself.

For your particular use case, you could write something up with WebSockets for client-server comms, but assuming you had control over your web server stack, your best bet would be to deliver a stream of audio using some HTTP streaming application so it's mostly synced across clients, then use a minimal amount of HTML to source and playback the audio (and you can show playlist info by passing data from your streaming server to your game server).
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline