Question: I have created a channel on Azure Media Services, I correctly configured it as an RTMP channel and streamed a live video with Android + FFMpeg libraries.

The problem is the client end-point latency. 

I need a maximum latency ~2 seconds, but now I have about ~25 seconds!

I'm using Azure Media Player in a browser page to stream the content.

Do you know a configuration of the client/channel which can reduce the latency?

Thanks

Answer: 
```
            Label dynamiclabel = new Label();
            dynamiclabel.Location = new Point(38, 30);
            dynamiclabel.Name = "lbl_ques";
            dynamiclabel.Text = question;
            //dynamiclabel.AutoSize = true;
            dynamiclabel.Size = new System.Drawing.Size(900, 26);
            dynamiclabel.Font = new Font("Arial", 9, FontStyle.Regular);

```
If you want to select the number of lines depending on font/text size, you can do something like this:

```
Label dynamiclabel1 = new Label();
dynamiclabel1.Location = new Point(280, 90);
dynamiclabel1.Name = "lblid";
dynamiclabel1.Size = new Size(150, 100);
dynamiclabel1.Text = "Smith had omitted the paragraph in question (an omission which had escaped notice for twenty years) on the ground that it was unnecessary and misplaced; but Magee suspected him of having been influenced by deeper reasons.";

dynamiclabel1.Font = new Font("Arial", 10, FontStyle.Regular);
int lines = 3; //number of lines you want your text to display in
using (Graphics g = CreateGraphics())
{
     SizeF size = g.MeasureString(dynamiclabel1.Text, dynamiclabel1.Font);
     float w=size.Width / lines;
     dynamiclabel1.Height = (int)Math.Ceiling(size.Height*lines);
     dynamiclabel1.Width = (int)Math.Ceiling(w);
}
panel1.Controls.Add(dynamiclabel1);

```

**Edit**  

If what you know is the width you have available and you want your label to adjust height to show all the content, can do this:

```
Label dynamiclabel1 = new Label();
dynamiclabel1.Location = new Point(280, 90);
dynamiclabel1.Name = "lblid";
dynamiclabel1.Size = new Size(150, 100);
dynamiclabel1.Text = "Smith had omitted the paragraph in question (an omission which had escaped notice for twenty years) on the ground that it was unnecessary and misplaced; but Magee suspected him of having been influenced by deeper reasons.";

dynamiclabel1.Font = new Font("Arial", 10, FontStyle.Regular);
int width  = 600; //Width available to your label
using (Graphics g = CreateGraphics())
{
    SizeF size = g.MeasureString(dynamiclabel1.Text, dynamiclabel1.Font);
    lines = (int)Math.Ceiling(size.Width / width);
    dynamiclabel1.Height = (int)Math.Ceiling(size.Height * lines);
    dynamiclabel1.Width = width;
}
panel1.Controls.Add(dynamiclabel1);

```