Create a free ticket and our support team will provide you necessary assistance.
Method | Returns | Return type | Description |
---|---|---|---|
play() | - | void | Plays current playback. |
pause() | - | void | Pauses current playback. |
stop() | - | void | Stops current playback. |
prepare(boolean autostart) | - | void | Prepares the library for operation. Its autostart parameter determines whether to play the video immediately after the preparation or wait for the user's action. |
isPlaying() | true - if player is playing a video | boolean | Returns the information on whether the video is being played at the moment or not. |
setVolume(float volume) | - | void | Sets the audio volume, with 0 being silence and 1 being unity gain. |
getVolume() | Current volume level | float | Returns current volume level. |
seekTo(long streamSeekUnixTime) | - | void | Forces the player to seek for a given source time. |
addMediaItem(StormMediaItem stormMediaItem) | - | void | Adds new StormMediaItem item to the playback list. |
addMediaItem(StormMediaItem stormMediaItem, boolean markAsSelected) | - | void | Adds new StormMediaItem item to the playback list and decides if it should be started. |
removeMediaItem(StormMediaItem stormMediaItem) | - | void | Removes StormMediaItem item from the playback list. |
playMediaItem(StormMediaItem stormMediaItem) | - | void | Initiates the playback of a given StormMediaItem item. |
playMediaItem(StormMediaItem stormMediaItem, boolean resetSeekPosition) | - | void | Initiates the playback of a given StormMediaItem item. Depending on resetSeekPosition it will either start the playback from LIVE moment (if true), or from the last position (if false). |
selectMediaItem(StormMediaItem stormMediaItem) | - | void | Selects given StormMediaItem item for playback. |
getSelectedStormMediaItem() | Currently selected (played) StormMediaItem item | StormMediaItem | Returns the currently selected StormMediaItem item. |
getStormMediaItems() | List of all added StormMediaItem items | List<StormMediaItem> | Returns the list of all added StormMediaItem items. |
clearStormMediaItems() | - | void | Clears the list of all added StormMediaItem items. |
addEventListener(StormLibrary.EventListener e) | - | void | Registers a new event listener with the library object. |
removeEventListener(StormLibrary.EventListener e) | - | void | Removes an event listener from the library object. |
getExoPlayer() | SimpleExoPlayer object | SimpleExoPlayer | Returns the underlying SimpleExoPlayer object. |
initStormGateway(String groupName) | A StormGateway object | StormGateway | Initiates a new request to the Gateway server and returns its object. |
Create a free ticket and our support team will provide you necessary assistance.