Hi,
This has to do with whatever YouTube requires. For example, if you put the iframe code into a local HTML file and then open that local HTML file in Chrome browser, you will get the same error. However if you put the same test HTML file on a web server and then access that Url through http/https, then it will work properly.
If you can not put your HTML file on an actual web server, you can use a custom resource handler to fake a http Url. See here for more details:
https://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.htmlThis allows you to use LoadUrl to load a Url that does not actually exist such as:
http://non_existing_server/my_special_page
You would then use the code inside your custom resource handler to intercept this Url and handle it before the browser engine actually tries to go to the Internet to look for it. Inside your handler you can just read your local text file and pass the result to the handler.
Hope this helps. Please feel free to let us know if you still have any questions.
Thanks!