byond - Modules - TypesVar Details - Proc Details

/datum/internet_media

Generic implementation to get a URL that can be sent to clients to play audio via /datum/tgui_panel/proc/play_music, from a provided URL

Vars

errorIf we have encountered an error while attempting to retrieve the URL

Procs

get_mediaHandles a request for an audio file, from a provided media URL Must return a /datum/media_response, which must have at least the [/datum/media_response/var/url] filled out

Var Details

error

If we have encountered an error while attempting to retrieve the URL

Proc Details

get_media

Handles a request for an audio file, from a provided media URL Must return a /datum/media_response, which must have at least the [/datum/media_response/var/url] filled out

If we are not returning a media_response, set the /datum/internet_media/var/error to be an error