N
N
Nikolay Alekseev2020-06-05 13:48:17
C++ / C#
Nikolay Alekseev, 2020-06-05 13:48:17

How to create internet radio using c# (integration with known servers)?

Good day to all!

There is a task to raise your Internet radio. The task is trivial and is performed by means of open source servers, such as IceCast. You can broadcast to them from ordinary players. Previously, Winamp definitely knew how to do this, now, it seems like, aimp can do it no worse, but not a fact.
The bottom line is that I need to use my own algorithms instead of a ready-made player. I don’t set myself a goal to write a full-fledged broadsite server, but I would like to understand in what format to send information to the server. From what I was able to google, I realized that this is some kind of wrapper over http, but I did not find any description of the normal one, unfortunately. Ready-made libraries, which is logical, too. The problem, apparently, is not the most common.

However, if someone knows how to do this, I would be extremely grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Alekseev, 2020-06-10
@VariusRain

After a couple of days of studying the information and communicating with the authors of the IceCast server, I finally found a solution.
Maybe it will be useful to someone.
Actually, I designed the solution in the form of a dll, which can be easily connected to the project and start the translation with two lines of code, but there are also all the sources and materials that I used for this, so you can pass by my library and just use the original .
Link to the
UDP project
For convenience, I created a package on Nuget

N
Nikita Gusev, 2020-06-10
@nguseff

you can use the ffmpeg utility, it supports sending data to streaming services. You can use it in C# either through libraries, or simply through the console.
Judging by the Internet, specifically with IceCast, ffmpeg does not work very well, so in this case it is better to choose another service (gstreamer, ffserver, etc.).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question