{"id":13685969,"url":"https://github.com/CaiWanFeng/PiP","last_synced_at":"2025-05-01T05:31:30.509Z","repository":{"id":41405594,"uuid":"426564919","full_name":"CaiWanFeng/PiP","owner":"CaiWanFeng","description":"The best way to customize picture-in-picture for iOS.","archived":false,"fork":false,"pushed_at":"2024-11-27T15:50:02.000Z","size":12359,"stargazers_count":245,"open_issues_count":6,"forks_count":64,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-27T16:24:08.496Z","etag":null,"topics":["avpictureinpictureviewcontroller","custom-pip","float-timer","floatwindow","ios","objective-c","picture-in-picture","pictureinpicutre","pip","pip-mode","swift","teleprompter"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaiWanFeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-10T09:44:16.000Z","updated_at":"2024-11-27T15:50:06.000Z","dependencies_parsed_at":"2024-11-12T08:41:40.831Z","dependency_job_id":null,"html_url":"https://github.com/CaiWanFeng/PiP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiWanFeng%2FPiP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiWanFeng%2FPiP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiWanFeng%2FPiP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiWanFeng%2FPiP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaiWanFeng","download_url":"https://codeload.github.com/CaiWanFeng/PiP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251830449,"owners_count":21650802,"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":["avpictureinpictureviewcontroller","custom-pip","float-timer","floatwindow","ios","objective-c","picture-in-picture","pictureinpicutre","pip","pip-mode","swift","teleprompter"],"created_at":"2024-08-02T14:01:00.165Z","updated_at":"2025-05-01T05:31:25.500Z","avatar_url":"https://github.com/CaiWanFeng.png","language":"Swift","funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# [中文文档](README_cn.md)\n\n# Features:\n\n### 1. You can add any custom view on the pip window.\n\n```swift\nfunc pictureInPictureControllerWillStartPictureInPicture(_ pictureInPictureController: AVPictureInPictureController) {\n    // note this is first window\n    if let window = UIApplication.shared.windows.first {\n        window.addSubview(customView)\n        // use autoLayout\n        customView.snp.makeConstraints { (make) -\u003e Void in\n            make.edges.equalToSuperview()\n        }\n    }\n}\n```\n\n### 2. You can hide speed button, backward button, play button and progress bar on the pip window.\nhttps://stackoverflow.com/questions/67528832/how-to-hide-system-controls-on-avpictureinpicturecontrollers-float-window#67528832\n\n### 3. You can modify the pip window’s shape dynamically with code.\n\n**The shape of the pip window depends on the shape of video**. So just change current video to a video with a different shape.\n\nSample code like:\n\n```objective-c\nNSURL *url = [[NSBundle mainBundle] URLForResource:videoName withExtension:@\"MP4\"];\nAVAsset *asset = [AVAsset assetWithURL:url];\nAVPlayerItem * item = [[AVPlayerItem alloc] initWithAsset:asset];\n[self.pipController.playerLayer.player replaceCurrentItemWithPlayerItem:item];\n```\n\n\n# Demos:\n\n## 1. float_teleprompter\n\n![float_teleprompter](float_teleprompter.GIF)\n\n## 2. float_timer\n\n![float_timer](float_timer.PNG)\n\n\n# Contact:\n\nFor more technical exchange you can scan to add my WeChat:\n\n![contact](contact.PNG)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCaiWanFeng%2FPiP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCaiWanFeng%2FPiP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCaiWanFeng%2FPiP/lists"}