silent change sopcast stream

Hi!
I have an ideea to be implement in serviio especially for sopcast streams.
When change sop stream, TV stop playing becuase lack of stream, and need to exit from current playback and reload item. Or use plugin like Sopcast.groovy, but in essence need same steps.
An more elegant solution (in my opinion) is this:
when stream buffer available for an livestream is almost empty, especially http://localhost:8908/tv.asf for sopcast is my interest, serviio silent replace this stream with an dump video in loop, something that show an animation for loading video.
In the meantime, serviio keep waching main buffer for new data. When is filled up again, replace dummy video with original stream and playback continue. TV is "dump" don't know about this swiching.
In this mod, i can change sop stream without intervention on TV wich is more elegant and resolve another problem with playback drop wich need again reload item using remote ......
More that, in future, if everything work as espected, can be implement some playlist in mediabrowser that allow to swich sopcast streams using web interface.
Shure, there can be some problems with changing codecs in stream wich can be easy resolved using transcoding, and video aspect. But an smart TV probablly adjust automatically image when resolution is change and almost all sopcast streams use h264 codec.
I don't see other solution, because at plugins level this cannot be done. Plugins only offer items with url for video. But sopcast is something different. In this case need some mechanism to start stream and cannot be done using TV. Solution is an single item in serviio pointing to http://localhost:8908/tv.asf and silent change sop stream using sopplayer, terminal or web interface.
Thanks for your attention!
I have an ideea to be implement in serviio especially for sopcast streams.
When change sop stream, TV stop playing becuase lack of stream, and need to exit from current playback and reload item. Or use plugin like Sopcast.groovy, but in essence need same steps.
An more elegant solution (in my opinion) is this:
when stream buffer available for an livestream is almost empty, especially http://localhost:8908/tv.asf for sopcast is my interest, serviio silent replace this stream with an dump video in loop, something that show an animation for loading video.
In the meantime, serviio keep waching main buffer for new data. When is filled up again, replace dummy video with original stream and playback continue. TV is "dump" don't know about this swiching.
In this mod, i can change sop stream without intervention on TV wich is more elegant and resolve another problem with playback drop wich need again reload item using remote ......
More that, in future, if everything work as espected, can be implement some playlist in mediabrowser that allow to swich sopcast streams using web interface.
Shure, there can be some problems with changing codecs in stream wich can be easy resolved using transcoding, and video aspect. But an smart TV probablly adjust automatically image when resolution is change and almost all sopcast streams use h264 codec.
I don't see other solution, because at plugins level this cannot be done. Plugins only offer items with url for video. But sopcast is something different. In this case need some mechanism to start stream and cannot be done using TV. Solution is an single item in serviio pointing to http://localhost:8908/tv.asf and silent change sop stream using sopplayer, terminal or web interface.
Thanks for your attention!