Search code examples
internet-explorervideoiframevb6webbrowser-control

WebBrowser Control | Mutliple iFrame Embedded YTPLAYER Vids | Only 1st Vid Functions


In a VB6 application:

  • If I load a HTML page with multiple ytplayer iFrame embeds only the first video functions. The other iFrame videos below it appear as white boxes.

  • If I load the exact same HTML page in Internet Explorer all of the videos function.

I'm trying to figure out which setting I need to tweak. I've been pouring over the FeatureControls but haven't spotted anything.

Any ideas where else to look for this setting or group of settings?

Here is a sample of a HTML file which loads properly in Internet Explorer but does not load properly in the webbrowser control:

Sample HTML File

TKS


Solution

  • Are you using WebBrowser in VB.NET to display the page? If so, I think the issue might be caused by that WebBrowser in VB.NET doesn't use IE 11 by default. I try to add this line in the first line of Sample.htm <head>, then it can work with WebBrowser in VB.NET:

    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    

    The result is like below:

    enter image description here