Class MediaErrorEvent
java.lang.Object
com.craftmend.openaudiomc.api.events.BaseEvent
com.craftmend.openaudiomc.api.events.ClientEvent
com.craftmend.openaudiomc.api.events.client.MediaErrorEvent
This event is called whenever a media source fails to load or play for the web client
-
Constructor Summary
ConstructorDescriptionMediaErrorEvent
(Client client, String mediaSource, MediaError mediaError) This event resembles an internal error in the web client (like bad or failed HTTP media requests). -
Method Summary
Modifier and TypeMethodDescriptionGet the media errorGet the media source that failedMethods inherited from class com.craftmend.openaudiomc.api.events.ClientEvent
getClient
-
Constructor Details
-
MediaErrorEvent
This event resembles an internal error in the web client (like bad or failed HTTP media requests).- Parameters:
client
- the client that this event is about
-
-
Method Details
-
getMediaSource
Get the media source that failed- Returns:
- the media source
-
getMediaError
Get the media error- Returns:
- the media error
-