Library events are related to the player behaviors (not the video/stream itself).
Event name | Parameters | Description |
---|---|---|
onIncompatiblePlayerProtocol() | - | Invoked when the existing version of the Storm Library is not compatible with the Storm server. It is then recommended to upgrade both to the latest version. |
onStormMediaItemAdded(stormMediaItem: StormMediaItem) | stormMediaItem – new StormMediaItem item | Invoked when new StormMediaItem was added to the playback list. |
onStormMediaItemRemoved(stormMediaItem: StormMediaItem) | stormMediaItem – removed StormMediaItem item | Invoked when StormMediaItem item was removed from the playback list. |
onStormMediaItemSelect(stormMediaItem: StormMediaItem) | stormMediaItem – selected StormMediaItem item | Invoked when StormMediaItem was selected for playback. |
onStormMediaItemPlay(stormMediaItem: StormMediaItem) | stormMediaItem – StormMediaItem item initiated for playback | Invoked when the selected StormMediaItem is started for playback. |
onGatewayConnecting() | - | Invoked on the Gateway server request start. |
onGatewayConnectionError(error: Error) | error – Exception related to connection error | Invoked on the Gateway server request error. |
onGatewayGroupNameNotFound() | - | Invoked whenever a stream group is not found on the Gateway server. |
onGatewayStormMediaItems(stormMediaItems: [StormMediaItem]) | stormMediaItems – List of stormMediaItems acquired from the Gateway server. | Invoked whenever the Gateway server successfully retrieves a stream group. |