Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit f79eea1

Browse files
author
xh
committed
Make Progress readable
1 parent 725d471 commit f79eea1

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

ffmpeg/progress.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,28 @@ type Progress struct {
88
Progress float64
99
Speed string
1010
}
11+
12+
// GetFramesProcessed ...
13+
func (p Progress) GetFramesProcessed() string {
14+
return p.FramesProcessed
15+
}
16+
17+
// GetCurrentTime ...
18+
func (p Progress) GetCurrentTime() string {
19+
return p.CurrentTime
20+
}
21+
22+
// GetCurrentBitrate ...
23+
func (p Progress) GetCurrentBitrate() string {
24+
return p.CurrentBitrate
25+
}
26+
27+
// GetProgress ...
28+
func (p Progress) GetProgress() float64 {
29+
return p.Progress
30+
}
31+
32+
// GetSpeed ...
33+
func (p Progress) GetSpeed() string {
34+
return p.Speed
35+
}

progress.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ package transcoder
22

33
// Progress ...
44
type Progress interface {
5+
GetFramesProcessed() string
6+
GetCurrentTime() string
7+
GetCurrentBitrate() string
8+
GetProgress() float64
9+
GetSpeed() string
510
}

0 commit comments

Comments
 (0)