Video Feed (React Native)

Currently, there are five source types of video feed:

  • Discover

  • Channel

  • Playlist

  • Playlist Group(Only supported on iOS)

  • Dynamic Content

  • Hashtag Playlist

  • SKU

  • Single Content

Integration

import {
  VideoFeed,
} from 'react-native-firework-sdk';

// discover
<VideoFeed 
  style={{ height: 200 }} 
  source="discover" 
/>

// channel
<VideoFeed 
  style={{ height: 200 }} 
  source="channel" 
  mode="row"
  channel="your encoded channel id"
/>

// playlist
<VideoFeed 
  style={{ height: 200 }} 
  source="playlist" 
  mode="row"
  playlist="your encoded playlist id"
  channel="your encoded channel id"
/>

// playlist group(only supported on iOS)
<VideoFeed 
  style={{ height: 200 }} 
  source="playlistGroup" 
  mode="row"
  playlistGroup="your encoded playlist group id"
/>

// dynamic content
<VideoFeed 
  style={{ height: 200 }} 
  source="dynamicContent" 
  mode="row"
  channel="your encoded channel id"
  dynamicContentParameters={{
    '<cohort key>': ['<cohort value1>', '<cohort value2>'],
  }}
/>

// hashtag playlist
<VideoFeed 
  style={{ height: 200 }} 
  source="hashtagPlaylist" 
  mode="row"
  channel="your encoded channel id"
  hashtagFilterExpression="<hashtag filter expression>"
/>

// sku
<VideoFeed 
  style={{ height: 200 }} 
  source="sku" 
  mode="row"
  channel="your encoded channel id"
  productIds={['prodct_id_1', 'product_id_2']}
/>

// single content
<VideoFeed 
  style={{ height: 200 }} 
  source="singleContent" 
  mode="row"
  contentId="your encoded video or live stream id"
/>

Please refer to the Encoded IDs help article to learn about how to find your encoded channel ID, playlist ID and playlist group ID.

Mode

VideoFeed component supports three modes: row, column, and grid.

Use grid mode:

Video feed configurations

Please consult Video feed configurations (React Native).

Video player configurations

Please consult Player configurations (React Native).

Video feed loading result callback

VideoFeed component provides onVideoFeedLoadFinished prop for setting video feed loading result callback.

Force refreshing video feed

Enable PiP(Picture in Picture)

Please refer to Enable PiP(Picture in Picture).

onVideoFeedClick

The callback is triggered when users click the video feed item. The event type is VideoFeedClickEvent.

onCustomCTAClick

The callback is triggered when users click the CTA button on the video in the video player. We start the floating player in the following sample codes. The event type is CustomCTAClickEvent.

Reference

VideoFeed

IVideoFeedProps

Last updated

Was this helpful?