// Video.swift
import Foundation
import SwiftUI
struct Video: Identifiable, Equatable {
var id: Int
var title: String
var url: String
var isFavorite = false
static func == (lhs: Video, rhs: Video) -> Bool {
return lhs.id == rhs.id
}
}
let videoList = [
Video(id: 101,
title: "Keynote🤖",
url: "https://p-events-delivery.akamaized.net/3004qzusahnbjppuwydgjzsdyzsippar/m3u8/hls_vod_mvp.m3u8"),
Video(id: 103,
title: "Platforms State of the Union🛠",
url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/103bax22h2udxu0n/103/hls_vod_mvp.m3u8"),
Video(id: 104,
title: "Apple Design Awards🏆",
url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/104d6zyhb21vki/104/hls_vod_mvp.m3u8"),
Video(id: 204,
title: "Introducing SwiftUI: Building Your First App",
url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/204isgnpbqud244/204/hls_vod_mvp.m3u8"),
Video(id: 214,
title: "Implementing Dark Mode on iOS",
url: "https://devstreaming-cdn.apple.com/videos/wwdc/2019/214iqtpuhih53fw2/214/hls_vod_mvp.m3u8")
]