{"id":24903893,"url":"https://github.com/alexruperez/avplayeritemhomeoutput","last_synced_at":"2025-10-16T15:30:58.402Z","repository":{"id":56901235,"uuid":"91344752","full_name":"alexruperez/AVPlayerItemHomeOutput","owner":"alexruperez","description":"Coordinate the output of content associated with your HomeKit lightbulbs. #Ambilight","archived":false,"fork":false,"pushed_at":"2017-05-16T19:01:14.000Z","size":11099,"stargazers_count":39,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-01T19:45:44.313Z","etag":null,"topics":["ambilight","avfoundation","avkit","avplayer","avplayeritem","avplayeritemoutput","avplayeritemvideooutput","avplayerview","avplayerviewcontroller","homebridge","homebridge-plugin","homekit","internet-of-things","iot","library","lightbulbs","output","swift"],"latest_commit_sha":null,"homepage":null,"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/alexruperez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T14:03:12.000Z","updated_at":"2024-06-14T18:47:43.000Z","dependencies_parsed_at":"2022-08-20T18:20:52.932Z","dependency_job_id":null,"html_url":"https://github.com/alexruperez/AVPlayerItemHomeOutput","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexruperez%2FAVPlayerItemHomeOutput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexruperez%2FAVPlayerItemHomeOutput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexruperez%2FAVPlayerItemHomeOutput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexruperez%2FAVPlayerItemHomeOutput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexruperez","download_url":"https://codeload.github.com/alexruperez/AVPlayerItemHomeOutput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236730802,"owners_count":19195683,"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":["ambilight","avfoundation","avkit","avplayer","avplayeritem","avplayeritemoutput","avplayeritemvideooutput","avplayerview","avplayerviewcontroller","homebridge","homebridge-plugin","homekit","internet-of-things","iot","library","lightbulbs","output","swift"],"created_at":"2025-02-01T22:34:29.377Z","updated_at":"2025-10-16T15:30:52.281Z","avatar_url":"https://github.com/alexruperez.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AVPlayerItemHomeOutput\n\n[![Twitter](https://img.shields.io/badge/contact-@alexruperez-0FABFF.svg?style=flat)](http://twitter.com/alexruperez)\n[![Version](https://img.shields.io/cocoapods/v/AVPlayerItemHomeOutput.svg?style=flat)](http://cocoapods.org/pods/AVPlayerItemHomeOutput)\n[![License](https://img.shields.io/cocoapods/l/AVPlayerItemHomeOutput.svg?style=flat)](http://cocoapods.org/pods/AVPlayerItemHomeOutput)\n[![Platform](https://img.shields.io/cocoapods/p/AVPlayerItemHomeOutput.svg?style=flat)](http://cocoapods.org/pods/AVPlayerItemHomeOutput)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Swift Package Manager Compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-4BC51D.svg?style=flat)](https://github.com/apple/swift-package-manager)\n[![Build Status](https://travis-ci.org/alexruperez/AVPlayerItemHomeOutput.svg?branch=master)](https://travis-ci.org/alexruperez/AVPlayerItemHomeOutput)\n[![Code Coverage](https://codecov.io/gh/alexruperez/AVPlayerItemHomeOutput/branch/master/graph/badge.svg)](https://codecov.io/gh/alexruperez/AVPlayerItemHomeOutput)\n[![codebeat badge](https://codebeat.co/badges/f724bedf-023f-45a0-b854-d2e864561f7a)](https://codebeat.co/projects/github-com-alexruperez-avplayeritemhomeoutput-master)\n\n![*AVPlayerItemHomeOutput*](https://raw.githubusercontent.com/alexruperez/AVPlayerItemHomeOutput/master/AVPlayerItemHomeOutput.jpg)\n\nThe *AVPlayerItemHomeOutput* lets you coordinate the output of content associated with your [*HomeKit*](https://www.apple.com/shop/accessories/all-accessories/homekit) lightbulbs.\n\nIn other words, becomes [*#Ambilight*](https://en.wikipedia.org/wiki/Ambilight). 😀\n\nWorks with all [*HomeKit*](https://developer.apple.com/homekit) (and [*HomeBridge*](https://github.com/nfarina/homebridge)) compatible lightbulbs.\n\n![*AVPlayerItemHomeOutput*](https://raw.githubusercontent.com/alexruperez/AVPlayerItemHomeOutput/master/AVPlayerItemHomeOutput.gif)\n\n## Installation\n\nAVPlayerItemHomeOutput is available through [*CocoaPods*](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'AVPlayerItemHomeOutput'\n```\n\n#### Or you can install it with [*Carthage*](https://github.com/Carthage/Carthage):\n\n```ogdl\ngithub \"alexruperez/AVPlayerItemHomeOutput\"\n```\n\n#### Or install it with [*Swift Package Manager*](https://swift.org/package-manager/):\n\n```swift\ndependencies: [\n    .Package(url: \"https://github.com/alexruperez/AVPlayerItemHomeOutput.git\")\n]\n```\n\n## Usage\n\n```swift\nlet sample = URL(string: \"https://raw.githubusercontent.com/bower-media-samples/big-buck-bunny-1080p-30s/master/video.mp4\")!\nlet asset = AVAsset(url: sample)\nlet playerItem = AVPlayerItem(asset: asset)\nlet homeOutput = AVPlayerItemHomeOutput(playerItem) // Only create your instance...\nhomeOutput.setDelegate(self, queue: nil) // Optional AVPlayerItemOutputPullDelegate.\nplayerItem.add(homeOutput) // ...and add it to your AVPlayerItem!\nlet playerViewController = AVPlayerViewController()\nplayerViewController.player = AVPlayer(playerItem: playerItem)\npresent(playerViewController, animated: true) {\n        playerViewController.player?.play()\n}\n```\n\n#### Don't forget:\n\nAdd *NSHomeKitUsageDescription* key to your *Info.plist* to specify the use of HomeKit in your app.\n\n## Etc.\n\n* Contributions are very welcome.\n* Attribution is appreciated (let's spread the word!), but not mandatory.\n\n## Authors\n\n[alexruperez](https://github.com/alexruperez), contact@alexruperez.com\n\n## License\n\n*AVPlayerItemHomeOutput* is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexruperez%2Favplayeritemhomeoutput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexruperez%2Favplayeritemhomeoutput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexruperez%2Favplayeritemhomeoutput/lists"}