UZPlayerResource
public struct UZPlayerResource
Undocumented
-
Undocumented
Declaration
Swift
public let name: String -
Undocumented
Declaration
Swift
public let cover: URL? -
Undocumented
Declaration
Swift
public let subtitles: [URL]? -
Undocumented
Declaration
Swift
public let definitions: [UZVideoLinkPlay] -
Undocumented
Declaration
Swift
public var isLive: Bool -
Player recource item with url, used to play single difinition video
Declaration
Swift
public init(name: String = "", url: URL, subtitles: [URL]? = nil, cover: URL? = nil, isLive: Bool = false)Parameters
namevideo name
urlvideo url
subtitlesvideo subtitles
covervideo cover, will show before playing, and hide when play
isLiveset
trueif live video -
Play resouce with multi definitions
Declaration
Swift
public init(name: String = "", definitions: [UZVideoLinkPlay], subtitles: [URL]? = nil, cover: URL? = nil, isLive: Bool = false)Parameters
namevideo name
definitionsvideo definitions
subtitlesvideo subtitles
covervideo cover
isLiveset
trueif live video
UZPlayerResource Structure Reference