33 lines
668 B
Swift
33 lines
668 B
Swift
//
|
||
// video.swift
|
||
// vrtnu
|
||
//
|
||
// Created by Jens Timmerman on 24/09/2020.
|
||
//
|
||
|
||
/*
|
||
See LICENSE folder for this sample’s 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
|
||
}
|
||
}
|
||
|