fix formatting
4 spaces per indentation
optimizations
simplify logic for first/next fragment loading
add logs
fix fragment reloading issue with live playlist introduced by recent changes
refactor buffer management
simplify the code and add comments
when seeking, flush netstream only when first fragment buffer is received
related to https://github.com/mangui/HLSprovider/issues/87