399d2c7be1
* 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
21 lines
338 B
Swift
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)
|
|
}
|
|
}
|