Skip to main content
Version: 1.1.7

Standalone player animations

You can configure the animations used to display and hide the player in standalone one. To do that, you need to update the animationOrigin parameter in JoinStoriesStandaloneConfig.

val joinStoriesStandaloneConfig = JoinStoriesStandaloneConfig(
joinAlias = "your_alias",
playerStandaloneAnimationOrigin = PlayerStandaloneAnimationOrigin.BOTTOM
)

JoinStories.startPlayer(
joinStoriesStandaloneConfig,
lifecycleScope,
container_view,
story_player,
listener
)

You have multiple options:

NameAnimation
BOTTOMDefault animation. Player will slide from the bottom of the screen. No scale animation combined
BOTTOM_LEFTPlayer will be displayed from the screen's bottom left corner. A scale animation is combined
BOTTOM_CENTERPlayer will be displayed from the screen's bottom center. A scale animation is combined
BOTTOM_RIGHTPlayer will be displayed from the screen's bottom right corner. A scale animation is combined
TOP_LEFTPlayer will be displayed from the screen's top left corner. A scale animation is combined
TOP_RIGHTPlayer will be displayed from the screen's top right corner. A scale animation is combined