SharePlayAsset
@available(iOS 15.0, tvOS 15.0, *)
public protocol SharePlayAsset : Decodable, Encodable
A type that represents a SharePlayAsset construct.
-
Platform Asset. This asset represents a content for which authorization could be requested to obtain a
PlaybackAsset.Declaration
Swift
var platformAsset: PlatformAsset { get set } -
Metadata required for SharePlay This is a general key-value dictionary of type
[String: String], additional data can be sent by appending to this data-dictinoary. To set the metadata required for SharePlay notification you need to set it using below keys:title: media title you need to display for users.fallbackURL: fallback URL to defane the fallback behavior if user don’t have app installed.previewImage: media preview image URL you need to display for users.Declaration
Swift
var data: SharePlayMetadata { get set }