{"id":25197838,"url":"https://github.com/douking/stmurlasset","last_synced_at":"2025-06-29T07:33:30.513Z","repository":{"id":62454471,"uuid":"307999517","full_name":"DouKing/STMURLAsset","owner":"DouKing","description":"A subclass of AVURLAsset that can cache data downloaded by AVPlayer.","archived":false,"fork":false,"pushed_at":"2024-06-25T08:06:34.000Z","size":186,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T01:18:14.599Z","etag":null,"topics":["avplayer","avurlasset","cache"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DouKing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-10-28T11:48:08.000Z","updated_at":"2025-03-25T06:36:34.000Z","dependencies_parsed_at":"2025-05-08T22:01:25.062Z","dependency_job_id":"f6292064-27ce-432d-855b-a33ac4333887","html_url":"https://github.com/DouKing/STMURLAsset","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DouKing/STMURLAsset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FSTMURLAsset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FSTMURLAsset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FSTMURLAsset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FSTMURLAsset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DouKing","download_url":"https://codeload.github.com/DouKing/STMURLAsset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouKing%2FSTMURLAsset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262557258,"owners_count":23328276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avplayer","avurlasset","cache"],"created_at":"2025-02-10T02:20:00.121Z","updated_at":"2025-06-29T07:33:30.452Z","avatar_url":"https://github.com/DouKing.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STMURLAsset\n\n`STMURLAsset` is a subclass of `AVURLAsset` that can cache data downloaded by `AVPlayer`.\n\n### Usage\n\nJust use it like `AVURLAsset`\n\n```swift\nlet url = URL(string: \"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4\")!\nlet asset = STMURLAsset(url: url)\nasset.preloadAsynchronously()\nlet playerItem = AVPlayerItem(asset: asset)\nlet player = AVPlayer(playerItem: playerItem)\nlet playerView = PlayerView()\nplayerView.playerLayer.player = player\n```\n\n### Installation\n\n##### Swift Package Manager\n\n- File \u003e Swift Packages \u003e Add Package Dependency\n- Add `https://github.com/douking/STMURLAsset`\n- Select \"Up to Next Major\" with \"0.1.0\"\n\n##### Cocoapods\n\nAdd the following line to your Podfile:\n\n```ruby\npod 'STMURLAsset'\n```\n\n### License\n\n`STMURLAsset` is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouking%2Fstmurlasset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouking%2Fstmurlasset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouking%2Fstmurlasset/lists"}