Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ZhgChgLi/ZPlayerCacher
Browse files Browse the repository at this point in the history
  • Loading branch information
zhgchgli0718 committed Mar 12, 2023
2 parents 7697361 + f6507a9 commit 9faa65b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
push:
branches:
- main

jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: spm build and test
run: |
set -o pipefail
xcodebuild test -scheme 'ZPlayerCacher' -enableCodeCoverage YES -resultBundlePath './scripts/TestResult.xcresult' -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.1' build test | xcprettyxcpretty
- name: Codecov
uses: codecov/codecov-action@v3.1.1
with:
xcode: true
xcode_archive_path: './scripts/TestResult.xcresult'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ZPlayerCacher

![ZPlayerCacher](https://user-images.githubusercontent.com/33706588/224538295-374df52d-c162-4ad8-9eaa-1df7ebb784bc.jpg)

ZPlayerCacher is a lightweight implementation of the AVAssetResourceLoaderDelegate protocol that enables AVPlayerItem to support caching streaming files.

```swift
AVPlayerItem(asset: CacheableAVURLAssetFactory(cacher: PINCacher(), logger: DefaultPlayerCacherLogger()).makeCacheableAVURLAssetIfSupported(url: url))
Expand Down

0 comments on commit 9faa65b

Please sign in to comment.