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.
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.
<StoryBlock
style={{ height: 400 }}
source="discover"
onStoryBlockLoadFinished={(error) => {
/**
* if error is undefined, it means that story block loaded successfully.
* Otherwise, it means that story block failed to load.
*/
console.log('onStoryBlockLoadFinished error', error);
}}
/>