저는 작은 정수 값을 가지고 있으며 이것을 CMTime으로 변환하고 싶습니다.매우 작은 값으로 CMTime 만들기
또는
CMTimeMakeWithSeconds (값 : _, 척도 : _)
문제는
CMTime (: _, 척도 _ 값) 인
은 항상 바닥을 반환하므로 시간은 항상 동일합니다. S
0.0 seconds
let smallValue = 0.0401588716 let frameTime = CMTime(Int64(smallValue) , timeScale: 1) //frameTime is 0.0 seconds because of Int64 conversion let frameTimeInSeconds = CMTimeMakeWithSeconds(smallValue , timeScale: 1) // frameTimeInSeconds also returns 0.0 seconds.
출력이 –
을 기대하고 무엇을'smallValue' 즉'솔루션에 대한 0.0401588716' –