URL streams cannot be paused and resumed?
For whatever reason this does not work as expected for me.
mocp -S
mocp -a http://xyx-.mp3
mocp -p
mocp -P
mocp -U
song starts over
Either from the commandline or from the interface the when paused and then resumed it starts over.
MOC closes the connection and therefore loses the stream. If the stream is "live" (i.e., a continuous and ongoing one), then MOC can only resume at the point currently being "broadcast" at the time of unpausing. If the stream is "on request" (i.e., a discrete and repeatable one), then MOC can only play the audio from the beginning when the reconnection is made.
In both cases, MOC just plays what it receives after reconnecting; there is no ability to seek backwards (in the first case) or forwards (in the second case), which is what would be required to implement a resumption from the playpoint at the time the stream was paused.
jcf
Tue, 2020-02-11 09:33
Permalink
Yes, this is the expected behaviour
MOC closes the connection and therefore loses the stream. If the stream is "live" (i.e., a continuous and ongoing one), then MOC can only resume at the point currently being "broadcast" at the time of unpausing. If the stream is "on request" (i.e., a discrete and repeatable one), then MOC can only play the audio from the beginning when the reconnection is made.
In both cases, MOC just plays what it receives after reconnecting; there is no ability to seek backwards (in the first case) or forwards (in the second case), which is what would be required to implement a resumption from the playpoint at the time the stream was paused.