Streaming Freeze
JasonNtr opened this issue · 4 comments
JasonNtr commented
I run this code in Visual Studio 2022.
I can connect to Icecast server , transmission starts but freezes after a few seconds.
I have tried with several songs in mp3 and ogg format , but nothing can completely stream.
it get stuck here: icecast.Send(buff, read);
Zerpico commented
I run this code in Visual Studio 2022. I can connect to Icecast server , transmission starts but freezes after a few seconds. I have tried with several songs in mp3 and ogg format , but nothing can completely stream. it get stuck here: icecast.Send(buff, read);
Does the user with whom you log in have permission to send? Maybe its read-only permissions
JasonNtr commented
I can stream to my icecast server with mixxx and butt, so i think it is not
permission related.
Στις Παρ 3 Φεβ 2023 στις 12:39 μ.μ., ο/η Ilya Khudaev <
***@***.***> έγραψε:
… I run this code in Visual Studio 2022. I can connect to Icecast server ,
transmission starts but freezes after a few seconds. I have tried with
several songs in mp3 and ogg format , but nothing can completely stream. it
get stuck here: icecast.Send(buff, read);
Does the user with whom you log in have permission to send? Maybe its
read-only permissions
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHJ7TCBJHHHB3JWL6H4JPLWVTN7RANCNFSM6AAAAAAUN5Q2BQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Zerpico commented
Please check that you are using the correct mp3 file and the format is set
icecast.Format=Libshout.SHOUT_FORMAT.SHOUT_FORMAT_MP3;
JasonNtr commented
thats my code:
icecast = new Libshout();
icecast.Protocol = Libshout.SHOUT_PROTOCOL.SHOUT_PROTOCOL_HTTP;
icecast.Host = "127.0.0.1";
icecast.Port = 8000;
icecast.Name = "my super radio";
icecast.Password = "hackme";
icecast.Mount = "/example.ogg";
icecast.Format = Libshout.SHOUT_FORMAT.SHOUT_FORMAT_MP3;
icecast.Open();
if (!icecast.IsConnected())
{
Console.WriteLine(icecast.GetError());
return;
}
Console.WriteLine("Connect!");
BinaryReader reader = new BinaryReader(File.Open(filename,
FileMode.Open));
var lenght = reader.BaseStream.Length;
int total = 0;
while (true)
{
read = reader.Read(buff, 0, buff.Length);
total = total + read;
if (read > 0)
{
icecast.Send(buff, read); //sync inside method
}
else break;
}
Στις Δευ 6 Φεβ 2023 στις 11:29 π.μ., ο/η Ilya Khudaev <
***@***.***> έγραψε:
… Please check that you are using the correct *mp3 file* and the format is
set
icecast.Format=Libshout.SHOUT_FORMAT.SHOUT_FORMAT_MP3;
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHJ7TDHC3ECINFXVK5327TWWC77BANCNFSM6AAAAAAUN5Q2BQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>