Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaspedrosa-hotmart committed May 3, 2020
1 parent 91ad07c commit 2e6abf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VidLoaderExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ platform :ios, '12.0'
target 'VidLoaderExample' do
use_frameworks!

pod 'VidLoader', :git => 'https://github.com/Cyklet/VidLoader.git'
pod 'VidLoader', :git => 'https://github.com/Hotmart-Org/VidLoader.git'

end
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ final class VideoListDataProvider: VideoListDataProviding {

func startDownload(with data: VideoData) {
guard let url = URL(string: data.stringURL) else { return }
vidLoaderHandler.loader.download(identifier: data.identifier,
url: url,
title: data.title,
artworkData: UIImage(named: data.imageName)?.jpegData(compressionQuality: 1))
vidLoaderHandler.loader.download(
identifier: data.identifier,
url: url,
title: data.title,
artworkData: UIImage(named: data.imageName)?.jpegData(compressionQuality: 1),
header: nil)
}

func stopDownload(with data: VideoData) {
Expand Down

0 comments on commit 2e6abf7

Please sign in to comment.