vrtnu-app/vrtnu/vrtnu/video.swift

33 lines
668 B
Swift
Raw Normal View History

2020-09-24 23:35:12 +00:00
//
// video.swift
// vrtnu
//
// Created by Jens Timmerman on 24/09/2020.
//
/*
See LICENSE folder for this samples licensing information.
Abstract:
Video is a simple struct that provides the title, url, and timing information about the app's videos.
*/
//import UIKit
import AVFoundation
struct Video: Hashable {
let hlsUrl: URL
let title: String
let duration: TimeInterval
var resumeTime: TimeInterval
init(hlsUrl: URL, title: String, duration: TimeInterval, resumeTime: TimeInterval = 0) {
self.hlsUrl = hlsUrl
self.title = title
self.duration = duration
self.resumeTime = resumeTime
}
}