public typealias Options = [String: Any]

public let kPosterUrl = "posterUrl"
public let kSourceUrl = "sourceUrl"
public let kMediaControl = "mediaControl"
public let kFullscreen = "fullscreen"
public let kFullscreenDisabled = "fullscreenDisabled"
public let kFullscreenByApp = "fullscreenByApp"
public let kStartAt = "startAt"
public let kAutoPlay = "autoplay"
public let kPlaybackNotSupportedMessage = "playbackNotSupportedMessage"
public let kMimeType = "mimeType"
public let kDefaultSubtitle = "defaultSubtitle"
public let kDefaultAudioSource = "defaultAudioSource"

struct OptionsUnboxer {
    let options: Options

    var fullscreenControledByApp: Bool {
        return options[kFullscreenByApp] as? Bool ?? false
    }

    var fullscreen: Bool {
        return options[kFullscreen] as? Bool ?? false
    }
}
