player 0.1.1

A player basic component library
Documentation
//
// common struct!
//

pub mod vide_sub_data{

    // 这里添加以后,调用的地方就可以打印了
    #[derive(Debug)]
    pub struct VideoData{
        pub name: String,
        pub time: i32,
        pub size: i32,
        pub desc: String,
    }

    impl VideoData {

        // new
        pub fn new(name:String, time:i32, size:i32,desc:String)->VideoData{
            VideoData{
                name,
                time,
                size,
                desc,
            }
        }

        // 获取基础信息
        pub fn get_sub_info(&self)-> (i32, i32){
            (self.time, self.size)
        }
    }
}