Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 527.1k

Video not getting automatically run

Nov 28 2022 12:36 PM

Hi

  With the below code Video opens in browser but it does not get automatically run

for (int i = 0; i < 4; i++)
{
    vProcessId = Start("youtube.com/watch?v=MYojqnJ34g4?autoplay=1");
}

public static int Start(string processName)
{
    var process =
        Process.Start("msedge.exe", @processName);

    return
        process.Id;
}

Thanks


Answers (3)