package com.horrortv.app.domain.model

enum class VideoType {
    HLS,
    MP4,
    DASH,
    UNKNOWN
}

data class SubtitleTrack(
    val url: String,
    val language: String,
    val label: String,
    val isDefault: Boolean = false,
    val mimeType: String = "text/vtt",
    val languageCode: String = language
)

data class QualityLevel(
    val width: Int,
    val height: Int,
    val bitrate: Long,
    val label: String
)

data class VideoSource(
    val videoUrl: String,
    val videoType: VideoType,
    val subtitleTracks: List<SubtitleTrack> = emptyList(),
    val posterUrl: String? = null,
    val title: String = "",
    val availableQualities: List<QualityLevel> = emptyList(),
    val currentQualityIndex: Int = -1
)

object VideoSourceConstants {
    val SUPPORTED_SUBTITLE_LANGUAGES = listOf("en", "es")
    val SUBTITLE_LANGUAGE_LABELS = mapOf(
        "en" to "English",
        "es" to "Español"
    )
}