namespace VideoStreamingService
features
    VideoStream {abstract}
        mandatory
            Category
                alternative
                    Movie
                    Series
                    Documentary
            Quality
                or
                    SD
                    HD
                    FullHD
            Audio
                alternative
                    Stereo
                    Surround
        optional
            Subtitles
            Dubbing
            Bitrate
    Movie {abstract}
        mandatory
            Genre
                or
                    Action
                    Comedy
                    Drama
            Director
            Year
        optional
            Actor
    Series {abstract}
        mandatory
            Season
            Episode
            Genre
                or
                    SciFi
                    Fantasy
                    Horror
        optional
            Creators
    Documentary {abstract}
        mandatory
            Topic
                alternative
                    History
                    Science
                    Nature
            Narrator
        optional
            Producers
    Subtitles {abstract}
        or
            English
            Spanish
            French
    Dubbing {abstract}
        alternative
            English
            Spanish
            French
    Bitrate {abstract}
        mandatory
            Low
            High
    VideoCodec
        or
            H264
            H265
            VP9
    AudioCodec
        alternative
            AAC
            MP3
            Opus
    Resolution {abstract}
        mandatory
            Width
            Height
    FrameRate {abstract}
        mandatory
            fps
    StreamingProtocol {abstract}
        alternative
            HTTP
            HLS
            DASH
    VideoPlayer {abstract}
        optional
            Play
            Pause
            Stop
    ControlPanel {abstract}
        optional
            Volume
            Brightness
            Contrast
    ErrorHandling {abstract}
        mandatory
            ConnectionLost
            ServerError
        optional
            UnknownError
constraints
    Movie => Genre
    Series => Season
    Documentary => Topic
    Quality => Audio
    Subtitles => Dubbing
    Dubbing => Subtitles
    Bitrate => Low | High
    (Movie & Action) => HD
    (Series & SciFi) => FullHD
    (Documentary & History) => SD
    ((Movie | Series) & Dubbing) => English
    (Documentary & Narrator) => English
    (Quality & Audio) => Bitrate
    ((Genre & Action) | (Genre & Comedy)) => Stereo
    (((Movie & Drama) | (Series & Fantasy)) & Dubbing) => Surround
    ((((Movie & Horror) | (Series & SciFi)) & Subtitles) & Dubbing) => French
    Movie => !Series
    Series => !Movie
    Documentary => !Movie & !Series
    SD => !HD & !FullHD
    HD => !SD & !FullHD
    FullHD => !SD & !HD
    Stereo => !Surround
    Surround => !Stereo
    English => !Spanish & !French
    Spanish => !English & !French
    French => !English & !Spanish
    Low => !High
    High => !Low
    Movie => (Year)
    Series => (Season & Episode)
    Documentary => (Topic & Narrator)
    Subtitles => Dubbing
    Dubbing => Subtitles
    Bitrate => (Low | High)
    VideoCodec => H264
    AudioCodec => AAC
    Resolution => Width & Height
    FrameRate => fps
    StreamingProtocol => HTTP
    Movie => !Series
    Series => !Movie
    Documentary => !Movie & !Series
    SD => !HD & !FullHD
    HD => !SD & !FullHD
    FullHD => !SD & !HD
    Stereo => !Surround
    Surround => !Stereo
    English => !Spanish & !French
    Spanish => !English & !French
    French => !English & !Spanish
    Low => !High
    High => !Low
    (Movie & Action) => (Genre & HD)
    (Series & SciFi) => (Season & FullHD)
    (Documentary & History) => (Topic & SD)
    ((Movie | Series) & Dubbing) => English
    (Documentary & Narrator) => English
    (Quality & Audio) => Bitrate
    ((Genre & Action) | (Genre & Comedy)) => Stereo
    (((Movie & Drama) | (Series & Fantasy)) & Dubbing) => Surround
    ((((Movie & Horror) | (Series & SciFi)) & Subtitles) & Dubbing) => French
    VideoPlayer => Play
    ControlPanel => Volume
    ErrorHandling => ConnectionLost
    StreamingProtocol => HTTP | HLS | DASH
    Resolution => Width & Height
    FrameRate => fps
    Movie => !Series
    Series => !Movie
    Documentary => !Movie & !Series
    SD => !HD & !FullHD
    HD => !SD & !FullHD
    FullHD => !SD & !HD
    Stereo => !Surround
    Surround => !Stereo
    English => !Spanish & !French
    Spanish => !English & !French
    French => !English & !Spanish
    Low => !High
    High => !Low
    Movie => (Year)
    Series => (Season & Episode)
    Documentary => (Topic & Narrator)
    Subtitles => Dubbing
    Dubbing => Subtitles
    Bitrate => (Low | High)