package top.kikt.ijkplayer.entity

/// create 2019/3/15 by cai
data class Info(
        val duration: Double,
        val currentPosition: Double,
        val width: Int,
        val height: Int,
        val isPlaying: Boolean
) {

    fun toMap(): Map<String, Any> {
        val map = HashMap<String, Any>()
        map["duration"] = duration
        map["currentPosition"] = currentPosition
        map["width"] = width
        map["height"] = height
        map["isPlaying"] = isPlaying
        return map
    }

}