Share & Video Deeplinking (React Native)

If you want the share URL to be a deep link. you can custom the share base URL, e.g. https://example.com. When users click the share link, it can be opened in your application.

FireworkSDK.getInstance().shareBaseURL="https://example.com"

You can follow this guide to handle deep links for React Native. After you get the deep link(the share link), you can use openVideoPlayer of FireworkSDK instance to open it.

FireworkSDK.getInstance().openVideoPlayer(deepLink);

Configuration for opening video player

You could pass the configuration when opening the video player. The configuration type is OpenVideoPlayerConfiguration.

Enable PiP(Picture in Picture) when opening the video player

FireworkSDK.getInstance().openVideoPlayer(url, {
  enablePictureInPicture: true,
});

You also need to set up the iOS project: https://docs.firework.com/home/react-native-sdk/integration-guide-v2/video-feed#set-up-the-ios-project

Last updated