Jump to content

why youtube embedded not viewed ??!!!


 Share

Recommended Posts

hello everybody

I need to view a video embedded using ie embedded 

here is my code 

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

Local $oIE = _IECreateEmbedded()
GUICreate("Embedded Web control Test", 625, 425, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2)
GUICtrlCreateObj($oIE, 10, 40, 600, 360)
GUISetState(@SW_SHOW) ;Show GUI

$oIE.navigate("about:blank")

$html = '<!DOCTYPE html>'&@CRLF& _
         '<html>'&@CRLF& _
         '<head>'&@CRLF& _
         '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>'&@CRLF& _
          '</head>'&@CRLF& _
         '<body>'&@CRLF& _
         '<p style = "font-family:Segoe UI;font-size:16px;">'&@CRLF& _
         '<br><center><img src="https://havecamerawilltravel.com/photographer/files/2020/01/youtube-logo-new.jpg" alt="" width="300" height="169"></center>'&@CRLF& _
         '<br>'&@CRLF& _
         '<center><iframe src="https://www.youtube.com/embed/i6L2YYUU7YQ" width="300" height="168.75" frameborder="0" allowfullscreen="allowfullscreen"></iframe></center>'&@CRLF& _
         '</p>'&@CRLF& _
         '</body>'&@CRLF& _
         '</html>'

_IEDocWriteHTML($oIE, $html)

While 1
    $msg=GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

if I write $html code to file.html then open using internet explorer it works well but not inside autoit ie embedded 

where is the wrong in my code please 

thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...