{"id":26615763,"url":"https://github.com/geberl/swift-fireplace","last_synced_at":"2025-03-24T06:33:57.180Z","repository":{"id":64912542,"uuid":"425239453","full_name":"geberl/swift-fireplace","owner":"geberl","description":"Offline playback of a fireplace video on your Apple TV","archived":false,"fork":false,"pushed_at":"2022-12-17T14:53:18.000Z","size":2709,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-11T01:59:45.468Z","etag":null,"topics":["appletv","swift","video","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"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/geberl.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}},"created_at":"2021-11-06T12:32:46.000Z","updated_at":"2023-01-06T12:10:07.000Z","dependencies_parsed_at":"2022-12-18T01:14:10.578Z","dependency_job_id":null,"html_url":"https://github.com/geberl/swift-fireplace","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geberl%2Fswift-fireplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geberl%2Fswift-fireplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geberl%2Fswift-fireplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geberl%2Fswift-fireplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geberl","download_url":"https://codeload.github.com/geberl/swift-fireplace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245222992,"owners_count":20580284,"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":["appletv","swift","video","xcode"],"created_at":"2025-03-24T06:32:36.036Z","updated_at":"2025-03-24T06:33:57.169Z","avatar_url":"https://github.com/geberl.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fireplace\n\n*Offline playback of a fireplace video on your Apple TV*\n\n![Swift](https://img.shields.io/badge/swift-5.7.1-orange.svg)\n![Xcode](https://img.shields.io/badge/xcode-14.1-brightgreen.svg)\n![Platform](https://img.shields.io/badge/platform-appleTV-lightgrey.svg)\n![OS](https://img.shields.io/badge/tvOS-16.1-yellow.svg)\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n\n## Screenshots\n\n![screenshot1](/images/screenshot_1.png?raw=true \"Screenshot 1\")\n\n![screenshot2](/images/screenshot_2.png?raw=true \"Screenshot 1\")\n\n## Bring Your Own Video\n\nFor copyright reasons the file `fire.mp4` is not included. It can be supplied for example in the following way:\n\n- Search for *\"fireplace 4k\"* on YouTube, choose a video\n- Show video and audio formats and file sizes `youtube-dl https://www.youtube.com/watch\\?v\\=Ux8xAuQBdkk --list-formats`\n- Choose a video of acceptable size\n- Download it `youtube-dl https://www.youtube.com/watch\\?v\\=Ux8xAuQBdkk --format 137 --output video.m4v`\n- Choose an audio track of acceptable size\n- Download it `youtube-dl https://www.youtube.com/watch\\?v\\=Ux8xAuQBdkk --format 140 --output audio.m4a`\n- Combine them `ffmpeg -i video.m4v -i audio.m4a -c:v copy -c:a copy fire.mp4`\n- Drag \u0026 drop the resulting file `fire.mp4` into Xcode and add it as an asset that is bundled on build\n    - Project -\u003e Target -\u003e Build Phases -\u003e Copy Bundle Resources -\u003e `fire.mp4` must appear in the list\n\n## Resources\n\n- [Source for video player code](https://stackoverflow.com/questions/25348877/how-to-play-a-local-video-with-swift)\n- [Apple's Sketch template for tvOS assets](https://developer.apple.com/design/resources/#tvos-apps)\n- [Blog post on other image asset usage](https://support.zype.com/hc/en-us/articles/221132148-Apple-TV-App-Images)\n\n## TODO\n\n- Loop video when end is reached\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeberl%2Fswift-fireplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeberl%2Fswift-fireplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeberl%2Fswift-fireplace/lists"}