API Methods - Storm iOS Library

Method Returns Return type Description
play() - - Plays current playback.
pause() - - Pauses current playback.
stop() - - Stops current playback.
isPlaying() true - if player is playing a video. Bool Returns the information on whether the video is being played at the moment or not.
seekTo(seekTime: Int64) - - Forces the player to seek for a given source time.
addStormMediaItem(stormMediaItem: StormMediaItem) - - Adds new StormMediaItem item to the playback list.
removeStormMediaItem(stormMediaItem: StormMediaItem) - - Removes StormMediaItem item from the playback list.
selectMediaItem(stormMediaItem: StormMediaItem, play: Bool = false, resetSeekPosition: Bool = true) - - Selects given StormMediaItem item for playback.
getSelectedStormMediaItem() Currently selected (played) StormMediaItem item. StormMediaItem? Returns the currently selected StormMediaItem item.
clearStormMediaItems() - - Clears the list of all added StormMediaItem items.
addObserver(observer: StormLibraryObserver) - - Registers a new event listener (observer) with the library object.
removeObserver(observer: StormLibraryObserver) - - Registers a new event listener (observer) with the library object.
geAvPlayer() AVPlayer object AVPlayer Returns the underlying AVPlayer object.
connectToGateway(groupName:String, stormGatewayServers: [StormGatewayServer], autoplay: Bool) - - Initiates a new request to the Gateway server.
Table 1. API methods table.
Support Needed?

Create a free ticket and our support team will provide you necessary assistance.

On this page

API Methods