ClipShareViewController
ClipShareViewController offers the clip trimming and creation UI including all the video editing logic to your application. Instantiate via the provided class method.
It is recommended to present the ClipShareViewController in a UINavigationController right after Snapping with SnapViewController, but you can also present it in any other context. Note: ClipShareViewController does not dismiss itself or handle navigation in any way and you are responsible for reacting accordingly to the ClipShareDelegate methods.
-
forSportEventSnapResultOn(tvChannelId:
tvChannelLogoURL: tvChannelName: epgUnitNameFallback: snapTimestamp: snapscreenAuthorizationHeader: clipShareDelegate: ) Creates and returns a new ClipShareViewController.
- tvChannelId the id of the TV channel - via SportEventSnapResultEntry.TvChannel.id
- tvChannelLogoURL the logo of the TV channel - via SportEventSnapResultEntry.TvChannel.logoURL
- tvChannelName the name of the TV channel - via SportEventSnapResultEntry.TvChannel.name
- epgUnitNameFallback the fallback in case no epg unit title is available - recommended SportEventSnapResultEntry.SportEvent.league ?? SportEventSnapResultEntry.SportEvent.tournament ?? SportEventSnapResultEntry.SportEvent.sport
- snapTimestamp the snap timestamp - via SportEventSnapResultEntry.timestamp
- snapscreenAuthorizationHeader - the authorization header as received from Snapscreen.instance.authorizationHeader
- clipShareDelegate the delegate you want to receive callbacks about clip sharing
-
Shows a loading indicator in the save clip button and disables the button
-
Hides the loading indicator in the save clip button