Does anyone have some advice on debugging #AVPlayer in #Xcode? I’m trying to play a YT video via the AVPlayer and it does not seem to work, but I get no reasonable error messages or anything to draw from. Yes, I extracted the URL with yt-dlp first.

#AVFoundation #Swift

Fading audio with AVPlayer

AVPlayer doesn’t provide a built-in way to fade in or out. I previously described how you achieve a video fade-in (or out) using general CoreAnimation layer animation, as part of making a macOS screen saver. Now let’s tackle the audio.

extension AVPlayer {

func fadeAudio(from startVolume: Float, to endVolume: Float, duration: Double) {

let audioMix = AVMutableAudioMix()

[…]

https://wadetregaskis.com/fading-audio-with-avplayer/

Fading audio with AVPlayer – Wade Tregaskis

How to loop video in AVPlayer

This is pretty rudimentary, but apparently our robot overlords need me to write this post because many of them suggested some truly bizarre approaches, some of which don’t work at all.

If you’re using AVQueuePlayer, then just use AVPlayerLooper. Easy. But if for some reason you want to use AVPlayer specifically (e.g. you need to do additional things anyway when playback loops back around), […]

https://wadetregaskis.com/how-to-loop-video-in-avplayer/

How to loop video in AVPlayer – Wade Tregaskis

Создание онлайн видео плеера

Привет, Хабр! Меня зовут Игорь, я занимаюсь мобильной разработкой в компании ГРИ, часть холдинга Sunlight. Сегодня хочу поделиться опытом создания плеера для воспроизведения плейлистов в форматах m3u и m3u8.

https://habr.com/ru/articles/810793/

#ios #разработка_приложений #мобильное_приложение #avplayer #vlc #swift #admob #библиотека

Создание онлайн видео плеера

Привет, Хабр! Меня зовут Игорь, я занимаюсь мобильной разработкой в компании ГРИ, часть холдинга Sunlight(еще не закрылись). Сегодня хочу поделиться опытом создания плеера для воспроизведения...

Хабр
Well this was a funky adventure. In case anyone else is bothered by this regression, here's my certain-to-not-get-past-App-Review fix. Works on iOS 17.1 too.
I don't know what they're thinking - it's like they've removed rubber-banding from scrolling. Or finger-tracking pinch-to-zoom. The mind boggles!
#Xcode #Developer #iOS17 #AVPlayer #Scrubbing #Fix