Interface UrlMutation
public interface UrlMutation
URL mutations can be used to register custom server-side media hooks or source translators.
An example use case would be a custom media server aliased by hypixel:, which can be resolved
to https://hypixel.com/media/* by a mutation. See
the media api
for more information.-
Method Summary
-
Method Details
-
onRequest
Translate a custom source to a full media URL.- Parameters:
original
- The original source as given in the createMedia method or any command- Returns:
- the URL that should be used for playback
-