Channel Feed

It is a predefined video feed. Users won't see any video that is not part of the channel. There are two ways of creating a channel.

  1. You have your own content i.e you are a creator, then by default, there is a channel associated with your creator account on Firework and all the videos that you upload to your account, from the Channel Feed.

  2. You don't have to be a creator to have a channel. You can still have a channel and repost/add videos from our Firework content library to the channel.

When you opt for Channel Feed, you should know that the videos that are served to your users are not ordered. Channel Feed defines the content but our recommendation engine still kicks in and serves video from the channel that it thinks users are likely going to engage with.

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="channel"
        app:fw_channelId="Your Encoded Channel Id"/>

Programmatically setting a Channel as a resource.

val viewOptions = viewOptions {
    baseOptions {
        feedResource(
            FeedResource.Channel("Encoded channel 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