Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

158
Vistas
How to programmatically allow Internet Explorer to use javascript and to play videos without user confirmation?

I am able to control Internet Explorer window in C++ using:

IWebBrowser2 *browser
CoCreateInstance(
    CLSID_InternetExplorer, 
    NULL, 
    CLSCTX_SERVER, 
    IID_IWebBrowser2, 
    (void**)&browser
);

And I navigate to a local html file that contains the following:

<video controls width="640" height="480">
    <source src="video.mp4"></source>
</video>

When I run the program the internet explorer opens fine but it asks me to "Allow blocked content" in order for the video to be able to be played. Same thing happens when I for example add some javascript in html file.

This is how it looks

My question is next: How can i prevent IE from showing me that popup and allow it to use ActiveX or Javascript programmatically. Any help would be much appreciated.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can't prevent IE from showing that popup and allow it to use ActiveX or Javascript programmatically. Just like the first comment saying, if you can do that programmatically, that means any app can control your computer which is unsafe.

These settings can only be configured by the user or administrator of the computer in IE Security Settings.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda