ApiRTC iOS SDK Documentation

Class Media

open class Media  

Properties

instance​Id

open private(set) var instanceId = UUID().uuidString

id

open private(set) var id: Int! 

filename

open private(set) var filename: String! 

title

open private(set) var title: String! 

type

open private(set) var type: MediaType! 

hash

open private(set) var hash: String! 

description

open private(set) var description: String? 

metadata

open private(set) var metadata: [String: Any?]? 

url

open private(set) var url: String! 

created​At

open private(set) var createdAt: Date! 

thumbnail

open private(set) var thumbnail: UIImage? 

Methods

thumbnail​Url()

open func thumbnailUrl() -> URL?  

image​Url()

open func imageUrl() -> URL?  

get​Thumbnail(completion:​)

open func getThumbnail(completion: @escaping (UIImage?, Error?) -> Void)