Update HLS stream processing

This commit is contained in:
Alexey Khit
2023-07-08 09:33:31 +03:00
parent fded87aa33
commit 01ef67153e
3 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func (s *Session) Playlist() string {
}
func (s *Session) Segment() (segment []byte) {
for i := 0; i < 20 && segment == nil; i++ {
for i := 0; i < 60 && segment == nil; i++ {
if i > 0 {
time.Sleep(50 * time.Millisecond)
}