Share & Video Deeplinking (Flutter)

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";

When a user clicks the deep link, your app(if installed) will be opened. Then you can get the deep link(the share link) and 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: url,
  config: OpenVideoPlayerConfiguration(
    enablePictureInPicture: true,
  ),
);

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

Last updated