Player Deck (Flutter)
Integration
import 'package:fw_flutter_sdk/fw_flutter_sdk.dart';
/// discover
PlayerDeck(
height: 481,
source: VideoFeedSource.discover,
);
/// channel
PlayerDeck(
height: 481,
source: VideoFeedSource.channel,
channel: "your encoded channel id",
);
/// playlist
PlayerDeck(
height: 481,
source: VideoFeedSource.playlist,
channel: "your encoded channel id",
playlist: "your encoded playlist id",
);
/// dynamic content
PlayerDeck(
height: 481,
source: VideoFeedSource.dynamicContent,
dynamicContentParameters: const {
'<cohort key>': ['<cohort value1>', '<cohort value2>']
},
);
/// hashtag playlist
PlayerDeck(
height: 481,
source: VideoFeedSource.hashtagPlaylist,
channel: "your encoded channel id",
hashtagFilterExpression: "<hashtag filter expression>",
);
/// sku playlist
PlayerDeck(
height: 481,
source: VideoFeedSource.sku,
channel: "your encoded channel id",
productIds: ["product_id_1", "product_id_2"],
);
/// single content
PlayerDeck(
height: 481,
source: VideoFeedSource.singleContent,
contentId: "your encoded video or live stream id",
);Player deck loading result callback
Empty callback
Force refreshing player deck
Get feed id
Enable PiP(Picture in Picture)
Set up the iOS project
Set enablePictureInPicture to true on Dart side
Keep alive when scrolling the widget out of the view box
Player deck configurations
Player configurations
Reference
Last updated
Was this helpful?