Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 528.1k

How to play video in 1 browser session only

Dec 15 2022 12:09 PM

Hi

  I have 5 videos . I want that 1 video shoyld get complete . Browser shoyld get close . Another video should start.

With current code it opens 5 videos in 5 browsers 

for (int i = 0; i < 4; i++)
            {
RunVideo("youtube.com/watch?v=5X0BJrdsW56A?loop=1");
}
public static void RunVideo(string videolink)
        {
            Process process = new Process();

            var _process = new ProcessStartInfo(@"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe", videolink);
            //Process.Start(_process);
            process.StartInfo = _process;
            process.Start();


        }

Thanks


Answers (1)