mirror of
https://github.com/pion/webrtc.git
synced 2025-10-04 23:02:48 +08:00
Improve bandwidth-estimation-from-disk error
On startup check if video files exist
This commit is contained in:
@@ -41,6 +41,13 @@ func main() {
|
||||
}
|
||||
currentQuality := 0
|
||||
|
||||
for _, level := range qualityLevels {
|
||||
_, err := os.Stat(level.fileName)
|
||||
if os.IsNotExist(err) {
|
||||
panic(fmt.Sprintf("File %s was not found", level.fileName))
|
||||
}
|
||||
}
|
||||
|
||||
i := &interceptor.Registry{}
|
||||
m := &webrtc.MediaEngine{}
|
||||
if err := m.RegisterDefaultCodecs(); err != nil {
|
||||
|
Reference in New Issue
Block a user