Increase timeout for hls client
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ func (r *reader) RoundTrip(_ *http.Request) (*http.Response, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *reader) getSegment() ([]byte, error) {
|
func (r *reader) getSegment() ([]byte, error) {
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 10; i++ {
|
||||||
if r.playlist == nil {
|
if r.playlist == nil {
|
||||||
if wait := time.Second - time.Since(r.lastTime); wait > 0 {
|
if wait := time.Second - time.Since(r.lastTime); wait > 0 {
|
||||||
time.Sleep(wait)
|
time.Sleep(wait)
|
||||||
|
|||||||
Reference in New Issue
Block a user