Player
Player copied to clipboard
▶️ Play and stream media in Swift
Anybody else experiencing this? Happens 90% of the time.
Still investigating, but if use the player as VC for a peek, the playback is sporadic. Sometimes it plays super fast all the way through, then the next time it...
When streaming a video, the playback starts then a quarter of a second later restarts from the beginning again. Sometimes the video and audio will play before restarting, but usually...
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libobjc.A.dylib 0x00000001b290e4ac object_isClass + 16 1 Foundation 0x00000001b2faa5f8 KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED + 44 2 Foundation 0x00000001b2fa8120 NSKeyValueWillChangeWithPerThreadPendingNotifications + 272 3 AVFoundation 0x00000001bce0aa14...
update to better support SwiftUI
` if (passedTime >= strongSelf.bufferSizeInSeconds || strongSelf._lastBufferTime == strongSelf.maximumDuration || timeRanges.first == nil) && strongSelf.playbackState == .playing { strongSelf.play() } ` When playing an HTTP video, always call :【strongSelf. play()】...
Hi, Is there any sample for SwiftUI? Can use this lib in a Swftui app Thanks Alan