Ramco Ramco

Ramco Ramco

  • 1k
  • 1.6k
  • 131.6k

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)