Group Story (Android)

Setting Up Group Story

To set up the Group Story, the host application must invoke the init() function, which requires both the context and the embed Id. These are essential fields, embed id can be obtained from the live2.ai dashboard.

Kotlin:

val groupStory: SiteSectionContainer = findViewById(R.id.groupStoryView)
groupStory.init(context = this, embedId = GROUP_STORY_EMBED)

Group Story Layout

XML Layout:

<com.live2.media.ui.container.SiteSectionContainer
                android:id="@+id/groupStoryView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:enablePreview="false"
                app:showTitle="true"
                app:viewType="GroupStoryView" />
  • Enabling video previews on the L1 screen: Set app:enablePreview="true" to allow video previews on the L1 screen.

  • Disabling video previews on the L1 screen: Set app:enablePreview="false" to prevent video previews from being displayed on the L1 screen.

Last updated