How can i load video using WebBrowser control in C# WinForms?

Viewed 35

dear users of StackOverflow! Some time ago, i managed to use WebBrowser Control to demonstrate a video without a video control panel, that is, without a pause buttons, and so on. Just a clean video that worked on Autoplay, Muted, Loop. Now i can’t display the video in Webbrowser Control. I tried various ways, but the only thing that the WebBrowser Control is shown is a white screen. But back then i was able to display the video.

I used such a structure for my index.html file:

<body>
 <Video autoplay muted loop>
  <Source SRC = "Assets/Media/Video/MP4/LiquidbackGround.mp4" Type = "Video/MP4">
 </Video>
</body>

My CSS file:

video {

        position: fixed;
        right: 0;
        bottom: 0;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: -9999;

}

My On Initialize method for WebBrowser Control:

webBrowser1.navigate("https://here-was-my-domain.com/");

Can anyone help me, please?..

0 Answers
Related