Hello! Here's a simple script:
set("harbor.bind_addr","0.0.0.0")
psfallback = playlist("./music/")
oldstream = input.gstreamer.audio(pipeline="uridecodebin
uri=mms://mydomain.com/stream00")
newstream = input.harbor("harbor",port=8080,password="xxx")
source = fallback(track_sensitive=false, [newstream,oldstream,psfallback])
output.icecast(%opus, host = "localhost", port = 8000, password =
"hackme", mount = "aa.opus", nrj(mksafe(source)))
This is supposed to switch between three streams: an harbor one, a
gstreamer one and a simple fallback playlist. (in order of importance)
But it doesn't work as expected: if the harbor stream is playing,
"oldstream" keeps buffering in the background, and after a while it
disconnects from the server because the buffer is full (i guess?). When
harbor is down the buffered data from oldstream plays, and after a while
(when the buffer is empty) everything switches to the playlist, and
oldstream just doesn't work anymore until i restart the script.
Is there a while to "discard" the samples or just disconnect/reconnect
in case of connection/disconnection of the source?
Thanks.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users