2024/08 3

[AVFoundation]

https://developer.apple.com/documentation/avfoundationAVAsset한개이상의 AVAssetTrack 으로 구성된다.local / remote 의 media 를 담는다.file-based / streamed(HLS = HTTP Live Streaming) media 를 담는다.duration : asset 길이, providesPreciseDurationAndTiming 가 false 인 경우 durationprovidesPreciseDurationAndTiming : default false, 단순 asset play 용도라면 false 로 충분, asset 이 조작될 여지가 있다면 true 로 세팅되어야한다.AVAssetTrack하나의 media type 을 ..

기타 2024.08.01

[Swift Standard Library]

ConcurrencyTask(idel time 부여)ex) try? await Task.sleep(for: .milliseconds(500))Actorprotocol Actor : AnyActor[ ] https://sujinnaljin.medium.com/swift-actor-뿌시기-249aee2b732d 추가 공부 필요!병렬 프로그래밍에서 데이터 경합(Data Race) 문제를 줄이기 위해 고안되었다.동기화된 상태 관리 : actor 내부의 상태는 actor 자신만이 직접 접근할 수 있으며, 다른 코드가 접근하려면 actor의 메서드를 통해야 합니다. 이렇게 하면 동시성 문제를 피할 수 있습니다.직렬화된 접근 : actor의 메서드는 한 번에 하나의 쓰레드만 접근할 수 있도록 직렬화됩니다. 따라서 동..

Swift 2024.08.01