3
Answers

Video not getting automatically run

Ramco Ramco

Ramco Ramco

2y
503
1

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)