GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - r-plus/HLSion: HTTP Live Streaming (HLS) download manager to offline playback.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
HLSion.xcodeproj
HLSion.xcodeproj
 
 
HLSion.xcworkspace
HLSion.xcworkspace
 
 
HLSionExample
HLSionExample
 
 
Sources
Sources
 
 
.gitignore
.gitignore
 
 
LICENCE
LICENCE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

HLSion

Carthage compatible

HTTP Live Streaming (HLS) download manager to offline playback.

Requirements

  • iOS 10.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

Add below to your Cartfile.

github "r-plus/HLSion" "master"

Thus build framework.

carthage update HLSion

Usage

import HLSion

let url = URL(string: "https://...m3u8")!
let hlsion = HLSion(url: url, name: "identifier").download { (progressPercentage) in
    // call while each file downloaded.
}.finish { (relativePath) in
    // call when complete or cancel download task finish.
}.onError { (error) in
    // call when error finish.
}

// cancelable.
hlsion.cancelDownload()

// delete downloaded asset.
hlsion.deleteAsset()

Play after download.

guard let localUrl = hlsion.localUrl else {
    // This instance not yet downloaded.
    return
}
let localAsset = AVURLAsset(url: localUrl)
let playerItem = AVPlayerItem(asset: localAsset)
let player = AVPlayer(playerItem: playerItem)
player.play()

About

HTTP Live Streaming (HLS) download manager to offline playback.

Resources

Readme
License
Activity

Stars

85 stars

Watchers

2 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.