Video Feed (React Native)
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"
/>Mode
Video feed configurations
Video player configurations
Video feed loading result callback
Force refreshing video feed
Enable PiP(Picture in Picture)
onVideoFeedClick
onCustomCTAClick
Reference
Last updated
Was this helpful?