Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 527.9k

Video opening in 10 different sessions

Jan 5 2023 4:27 AM

Hi

  I have below code . I want video should run in same browser session. There r 10 videos . it gets opened in 10 different chrome session.

protected void Page_Load(object sender, EventArgs e)
{
    BindData();
    for (int i = 0; i <= 10; i++)
    {
        RunVideo("htps://youtu.be/f7V5vy5-EU?loop=1");
    }
}
public static void RunVideo(string videolink)
{
    Process.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe",
              videolink);
}

Thanks


Answers (2)