{"id":18829965,"url":"https://github.com/vitoziv/vimediacache","last_synced_at":"2025-05-15T20:04:28.508Z","repository":{"id":41262887,"uuid":"59033427","full_name":"vitoziv/VIMediaCache","owner":"vitoziv","description":"Cache media file while play media using AVPlayer","archived":false,"fork":false,"pushed_at":"2024-05-21T02:52:29.000Z","size":148,"stargazers_count":983,"open_issues_count":46,"forks_count":188,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-13T10:43:49.740Z","etag":null,"topics":["avplayer","cache"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/vitoziv.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}},"created_at":"2016-05-17T15:12:36.000Z","updated_at":"2025-05-09T09:30:34.000Z","dependencies_parsed_at":"2022-07-13T15:29:35.164Z","dependency_job_id":"e36a811a-0253-490d-83e1-af9db075cb75","html_url":"https://github.com/vitoziv/VIMediaCache","commit_stats":{"total_commits":76,"total_committers":10,"mean_commits":7.6,"dds":"0.19736842105263153","last_synced_commit":"f18c75abd148df8e569f230b282ca96ca23e0c45"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitoziv%2FVIMediaCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitoziv%2FVIMediaCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitoziv%2FVIMediaCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitoziv%2FVIMediaCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitoziv","download_url":"https://codeload.github.com/vitoziv/VIMediaCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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","cache"],"created_at":"2024-11-08T01:47:12.547Z","updated_at":"2025-05-15T20:04:22.319Z","avatar_url":"https://github.com/vitoziv.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VIMediaCache\n\n[中文说明](https://mp.weixin.qq.com/s/v1sw_Sb8oKeZ8sWyjBUXGA)\n\nCache media file while play media using AVPlayerr.\n\nVIMediaCache use AVAssetResourceLoader to control AVPlayer download media data.\n\n### CocoaPods\n\n`pod 'VIMediaCache'`\n\n### Usage\n\n**Objective C**\n\n```Objc\nNSURL *url = [NSURL URLWithString:@\"https://mvvideo5.meitudata.com/571090934cea5517.mp4\"];\nVIResourceLoaderManager *resourceLoaderManager = [VIResourceLoaderManager new];\nself.resourceLoaderManager = resourceLoaderManager;\nAVPlayerItem *playerItem = [resourceLoaderManager playerItemWithURL:url];\nAVPlayer *player = [AVPlayer playerWithPlayerItem:playerItem];\n```\n\n**Swift**\n\n```Swift\nlet url = URL(string: \"https://mvvideo5.meitudata.com/571090934cea5517.mp4\")\nlet resourceLoaderManager = VIResourceLoaderManager()\nlet playerItem = resourceLoaderManager.playerItem(with: url)\nlet player = AVPlayer(playerItem: playerItem)\n```\n\n### Contact\n\nvvitozhang@gmail.com\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitoziv%2Fvimediacache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitoziv%2Fvimediacache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitoziv%2Fvimediacache/lists"}