Functions and methods - Storm iOS Library

MethodReturnsReturn typeDescription
play()--Plays current playback.
pause()--Pauses current playback.
stop()--Stops current playback.
isPlaying()true - if player is playing a videoBoolReturns 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 itemStormMediaItem?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 objectAVPlayerReturns the underlying AVPlayer object.
connectToGateway(groupName:String, stormGatewayServers: [StormGatewayServer], autoplay: Bool)--Initiates a new request to the Gateway server.
Table 1. Methods table