Story Block (React Native)
For android:
StoryBlock is a heavy object containing multiple instances of the player, Heavy-lifting UI elements, and intensive background tasks, Beware that the recommended number of the StoryBlock being used in a single screen is 1. However, in a wide range of new Android devices, 2 instances might work alright. Any number of StoryBlock above this limitation is not recommended by the Firework team and is not supported.
There are four source types of the story block:
Discover
Channel
Playlist
Dynamic Content
Hashtag Playlist
Sku
Single Content
Integration
Please refer to the Encoded IDs help article to learn about how to find your encoded channel ID, playlist ID.
Story block loading result callback
StoryBlock
component provides onStoryBlockLoadFinished
prop for setting video feed loading result callback.
Story block configuration
StoryBlock
component provides storyBlockConfiguration
prop for configuring Video Player. The current configurable properties are showShareButton
, shareBaseURL
, and ctaWidth
etc. Please refer to StoryBlockConfiguration for more details.
Customize player logo
Show the logo for the creator of the media
Shows the channel aggregator's logo
Show countdown for the livestream trailer
Enable PiP(Picture in Picture)
You need to set enablePictureInPicture
to true
to enable PiP.
Set up the iOS project
To enable PiP outside the iOS app, you also need to add Background Modes capability via Signing & Capabilities in your iOS project settings. More information about this can be found here: Apple Documentation
To use Picture in Picture, we configure the app to support background audio playback. See Configuring the Audio Playback of iOS and tvOS Apps for more details.
As the following screenshot, we should select "Audio, AirPlay, and Picture in Picture".
Reference
Last updated