karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
300 stars 107 forks source link

allowing multiple icy sources on same port #299

Open inetactief opened 4 years ago

inetactief commented 4 years ago

Hi,

I was curious how it works for multiple sources on 1 port. It would be nice if there is 1 port for http and https for using all portals and devices.

Best regards, Michel

karlheyes commented 4 years ago

multiple sources has always been possible if they were icecast based as a mountpoint was one of the parameters supplied, allowing for identifying a particular stream.

A recent addition was allowing for multiple icy/shoutcast based sources to stream. This latter case has always been a problem as a reference was not provided to indicate which stream to use as a reference. This was initially done using the shoutcast-mount tag so that information was provided to match other streams but it did limit it to one per port-pair (note that icy sources use 2 ports for source streaming). kh14 now allows for providing the mountpoint within the password field eg

/stream:hackme

obviously the 2 ports are still needed, so define the shoutcast-mount tag in the listen-socket bock as before. This will set a default mountpoint and automatically create the second port.

karl.

karlheyes commented 4 years ago

I should add that a listening port can do both ssl or non-ssl links, provided ssl is enabled in the build.

karl.