Closed penghongguang closed 1 year ago
python-mpv is only a thin wrapper around libmpv. All the stream caching logic is inside libmpv, not python-mpv, so you may find the issue tracker of libmpv/mpv at https://github.com/mpv-player/mpv/issues more useful. You aren't the first person with this issue, so you could try seraching python-mpv's issue archives too. Also perhaps check out some projects using python-mpv using github's search function. I know there are a few internet radio/stream players among those. Maybe you can find a solution in one of them.
when I use mpv to play a network stream, the player only begin to play when the stream is over, and the solution I found such as set
demuxer-cache-time
is invalid. the code is as follow:what can I do to play a realtime network stream?