Share & Video Deeplinking (Flutter)
Last updated
Was this helpful?
Last updated
Was this helpful?
If your website integrates our Web component, we suggest setting the website link (without query) as the shared base URL. For instance, if the link for the website integrating our Web component is https://example.com
, you could set the share base URL using the following code snippets.
Once the share URL is configured as demonstrated in the code snippets above, the sample video shared URL will become https://example.com?fw_video={video_encoded_id}&fw_channel={channel_name}&fw_playlist={playlist_encoded_id}
. Users can share the video by clicking the share button.
For instance, if you set the shared base URL as https://example.com
, you must ensure that links beginning with https://example.com
function as universal links for iOS and app links for Android. This way, the user clicking the shared URL will trigger your app (if installed) to open. Please consult the following docs for more details:
When a user clicks the share link, your app (if installed) will be opened. Then you can get the the shared link and use openVideoPlayer
of FireworkSDK
instance to open the video player.
For instance, you might want to open the video player directly, bypassing the need for users to click a share link outside the app. Instead, you could trigger the video player to open when users click a button within the app. In this case, you could manually construct the shared URL and use openVideoPlayer
API to open the video player.
As illustrated in the following code snippets, you can launch the video player to present a single video or livestream.
As illustrated in the following code snippets, you can launch the video player to present all videos/livestreams within a playlist. The specified video will be positioned first.
Please consult Player configurations (Flutter)