2022-07-13 06:30:54 +00:00
|
|
|
package file
|
|
|
|
|
|
|
|
// VideoFile is an extension of BaseFile to represent video files.
|
|
|
|
type VideoFile struct {
|
|
|
|
*BaseFile
|
|
|
|
Format string `json:"format"`
|
|
|
|
Width int `json:"width"`
|
|
|
|
Height int `json:"height"`
|
|
|
|
Duration float64 `json:"duration"`
|
|
|
|
VideoCodec string `json:"video_codec"`
|
|
|
|
AudioCodec string `json:"audio_codec"`
|
|
|
|
FrameRate float64 `json:"frame_rate"`
|
|
|
|
BitRate int64 `json:"bitrate"`
|
|
|
|
|
|
|
|
Interactive bool `json:"interactive"`
|
|
|
|
InteractiveSpeed *int `json:"interactive_speed"`
|
|
|
|
}
|
2022-09-01 07:54:34 +00:00
|
|
|
|
2023-05-16 23:30:51 +00:00
|
|
|
func (f VideoFile) GetWidth() int {
|
|
|
|
return f.Width
|
|
|
|
}
|
2022-09-01 07:54:34 +00:00
|
|
|
|
2023-05-16 23:30:51 +00:00
|
|
|
func (f VideoFile) GetHeight() int {
|
|
|
|
return f.Height
|
|
|
|
}
|
2022-09-01 07:54:34 +00:00
|
|
|
|
2023-05-16 23:30:51 +00:00
|
|
|
func (f VideoFile) GetFormat() string {
|
|
|
|
return f.Format
|
2022-09-01 07:54:34 +00:00
|
|
|
}
|