Skip to content

Incorrect _errorCounts value #100

@stevendesu

Description

@stevendesu

Currently when HLS.js freezes it fires several non-fatal "bufferStalled" and "bufferNudgeOnStall" errors before firing a single fatal "bufferStalled" error. All of these errors count as "media" errors, and so _errorCount["media"] is set to 6 or 7 before _handleMediaError() gets called (by the fatal one) - meaning we never attempt _hls.recoverMediaError() or _hls.swapAudioCodec()

Should be a trivial fix of moving the increment/set error count step to within the if (data.fatal) block

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions