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
name
video name
url
video url
subtitles
video subtitles
cover
video cover, will show before playing, and hide when play
isLive
set
true
if 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
name
video name
definitions
video definitions
subtitles
video subtitles
cover
video cover
isLive
set
true
if live video