You can customize the shared URL. The feature can be used, if you want share URL to be a universal link or a deeplink link so that when a user clicks on it, it can be opened in your application.
To customize a share url, just provide a base url.
config.playerView.shareButton.behavior.baseURL =URL(string:"<Base URL for your Universal Link or Deeplink>")
Handling Share Link
After your app receives a universal link or deeplink, once your app is ready to present the video player you can use one of two methods to present the player
let viewController =// The view controller that should present the video playerlet url =// The received url that contains the `fwplayer` query parameter// Optionally a custom player config can be applied to the presented video playerlet feedConfig: VideoFeedContentConfiguration =// Custom video player configurationVideoFeedViewController.openVideoPlayer(with: url, feedConfig, viewController) { result in/* Called after successfully presenting the video player */ }// Or you can pass the value of the `fwplayer` query parameter directly into methodlet paramValue =// The value of the `fwplayer` query parameterVideoFeedViewController.openVideoPlayer(with: paramValue, viewController) { result in/* Called after successfully presenting the video player */ }
Note If a custom VideoFeedContentConfiguration is not passed into the openVideoPlayer method the default configuration will be used.