Video Feed (Flutter)
Integration
import 'package:fw_flutter_sdk/fw_flutter_sdk.dart';
/// discover
VideoFeed(
height: 200,
source: VideoFeedSource.discover,
);
/// channel
VideoFeed(
height: 200,
source: VideoFeedSource.channel,
channel: "your encoded channel id",
);
/// playlist
VideoFeed(
height: 200,
source: VideoFeedSource.playlist,
channel: "your encoded channel id",
playlist: "your encoded playlist id",
);
/// playlist group
VideoFeed(
height: 200,
source: VideoFeedSource.playlistGroup,
playlistGroup: "your encoded playlist group id",
);
/// dynamic content
VideoFeed(
height: 200,
source: VideoFeedSource.dynamicContent,
dynamicContentParameters: const {
'<cohort key>': ['<cohort value1>', '<cohort value2>']
},
);
/// hashtag playlist
VideoFeed(
height: 200,
source: VideoFeedSource.hashtagPlaylist,
channel: "your encoded channel id",
hashtagFilterExpression: "<hashtag filter expression>",
);
/// sku playlist
VideoFeed(
height: 200,
source: VideoFeedSource.sku,
channel: "your encoded channel id",
productIds: ["prodct_id_1", "prodct_id_2"],
);
/// single content
VideoFeed(
height: 200,
source: VideoFeedSource.singleContent,
contentId: "your encoded video or live stream id"
);Mode
Video feed loading result callback
Empty callback
Force refreshing video feed
Enable PiP(Picture in Picture)
Keep alive when scrolling the widget out of the view box
onVideoFeedClick
onCustomCTAClick
Video feed configurations
Player configurations
Reference
Last updated
Was this helpful?