Single Content Feed

The SingleContent feed type allows you to have a single Video or Livestream view. Users will see and only see that specific Video or Livestream.

Example code snippet for Channel Feed:

<com.firework.videofeed.FwVideoFeedView
        android:id="@+id/videoFeedView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:fw_columns="3"
        app:fw_feedLayout="grid"
        app:fw_feedResource="singleContent"
        app:fw_contentId="Encoded Video/Livestream Id"/>

Programmatically setting a Channel as a resource:

val viewOptions = viewOptions {
    baseOptions {
        feedResource(
            FeedResource.SingleContent("Encoded Video/Livestream ID"),
        )
    }
    layoutOptions {
        feedLayout(
            FeedLayout.HORIZONTAL
        )
    }
}

val videoFeedView = findViewById<FwVideoFeedView>(R.id.videoFeedView)
videoFeedView.init(viewOptions)

Please refer to the Encoded IDs help article to learn about how to find your encoded channel ID

Last updated