30.07.2016, 07:34
Hey,
So, what I want basically is that a command that's /savemyradio, it will open up a dialog and the player can paste his stream link, the one which he got from shoutcast.com. and when he clicks on okay on the dialog. It would save the the link he pasted into the database in the table called "Streams"
and when the player would type /myradio, it will show a dialog with the options
"Own Stream"
"Stop Radio"
Clicking on Own Stream, would get the data from Streams table and play it usng PlayAudioStreamForPlayer for the player, anywhere.
Stop radio, would simply stop it.
I haven't really worked with all these functions before, that's why I literally have no idea on how to execute them, any help with a bit of code would be appreciated.
Thanks,
So, what I want basically is that a command that's /savemyradio, it will open up a dialog and the player can paste his stream link, the one which he got from shoutcast.com. and when he clicks on okay on the dialog. It would save the the link he pasted into the database in the table called "Streams"
and when the player would type /myradio, it will show a dialog with the options
"Own Stream"
"Stop Radio"
Clicking on Own Stream, would get the data from Streams table and play it usng PlayAudioStreamForPlayer for the player, anywhere.
Stop radio, would simply stop it.
I haven't really worked with all these functions before, that's why I literally have no idea on how to execute them, any help with a bit of code would be appreciated.
Thanks,