vrtnu-app/vrtnu/vrtnu/video.swift

33 lines
668 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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
}
}