Files
PlayerKit/Sources/CMTime+Utilities.swift
Bryant Balatbat 399d2c7be1 [CRI-1211] Update project structure to more closely resemble other public repos (#85)
* Reorganize project and top level

- Move sources into Sources
- Update podspec to reflect new sources location
- Move Example files into top level

* Update Fastfile

- Point to new project/workspace locations

* Update Fastfile with correct config

* Fix CI build failures

- Update Fastfile to point to correct scheme
- Add Tests file to PlayerKit-iOSTests target
- Update Example scheme to exclude tests
- Update scheme for iOS Framework target to include tests

* Update .gitignore and commit Pods directory

* Remove cocoapods from lane altogether
2019-08-06 10:14:07 -04:00

21 lines
338 B
Swift

//
// CMTime+Utilities.swift
// Pods
//
// Created by King, Gavin on 3/7/17.
//
//
import Foundation
import AVFoundation
extension CMTime {
var timeInterval: TimeInterval? {
if CMTIME_IS_INVALID(self) || CMTIME_IS_INDEFINITE(self) {
return nil
}
return CMTimeGetSeconds(self)
}
}