Building Dynamic Island for Video Streaming App

Introduction I was curious about how to add Dynamic Island and implement it into a Video Streaming App. Here are a few steps on how you can achieve this. Caveats Debugging Dynamic Island can be a bit tricky; it only works when the main app is running. If you try to run it separately, you will encounter the error SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget". The solution is to configure live activities and run them through the main app....

May 6, 2024 · 2 min · Dmytro Chumakov

Building Video Streaming Widget for iOS App

Introduction I was exploring the idea of creating a YouTube-like widget for the lock screen on iOS devices. It wasn’t easy because most articles on the Internet discussed general implementations, such as for a coffee shop or a to-do list. Even when I found some similar versions, the project wouldn’t compile. I made the decision to approach it my way, so here’s what I found out: Caveats After being stuck for two or more hours without understanding why, after tapping on a button, I wasn't able to receive a callback from it and the widget always opened the main iOS app, I realized that I forgot to add AppIntent - without it, you can’t handle actions for iOS 17....

May 5, 2024 · 2 min · Dmytro Chumakov

Building Video Streaming iOS App

Introduction I was looking for a way to add a video player to my iOS app that could be able to play remote videos. Caveats Problem I found that you can’t open Vimeo or Youtube videos because of AVFoundationErrorDomain Code=-11850 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The server is not correctly configured Domain=NSOSStatusErrorDomain Code=-12939 error. I don’t know exactly what this means, but I’m speculating it’s related to some protection. Solution My solution was to find another video that is not related to those platforms....

May 3, 2024 · 1 min · Dmytro Chumakov

Building movie recommendations using ML

Introduction I was wondering about how to create movie recommendations, so I decided to take a closer look and find out more about this topic. This is what I found: First step: You need to create a JSON file with the data that you will use to train the model and define the parameters for training the model. [ { "title": "Avatar", "year": "2009", "rated": "PG-13", "released": "18 Dec 2009", "runtime": "162 min", "genre": "Action, Adventure, Fantasy", "director": "James Cameron", "writer": "James Cameron", "actors": "Sam Worthington, Zoe Saldana, Sigourney Weaver, Stephen Lang", "plot": "A paraplegic marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home....

May 1, 2024 · 5 min · Dmytro Chumakov

Building Xcode project using Github Actions

Introduction If you’re wondering how to build an Xcode project using GitHub Actions, here are a few steps: First, you need to create a .github/workflows folder with a CI.yml file inside your project directory. Next, you need to add configuration to the CI.yml file. name: CI on: push: branches: - main jobs: build: runs-on: macos-14 steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Xcode version run: sudo xcode-select -s /Applications/Xcode_15....

April 23, 2024 · 1 min · Dmytro Chumakov