I'm making a small music player using pafy and vlc. I get audio with Youtube urls and pass it to vlc. In most cases, it works perfectly. However, sometimes I get the below error on the log, and after that my player crashes.
[0000027de1ccce40] main tls client error: connection error: Interrupted function call
[0000027de5eb5b30] mkv demux error: unable to read KaxCluster during seek, giving up
[0000027de5eb5b30] mkv demux error: unable to read KaxCluster during seek, giving up
I also got the below minutes ago, but it has been solved by adding 'prefer-insecure'.
[000001e269b0b7b0] mp4 demux: Fragment sequence discontinuity detected 1 != 0
I've read this. In the comment, I saw someone having the same problem as me ,but no one answered that.
Does anyone know how to fix this?