How to use Chrome Frame ActiveX control - html

Is there any sample about using Chrome Frame ActiveX control instead of Iframe?
i need this because i can not use HTML5 canvas element in IE8 so that i tried chrome frame but it's not supported inside iframe.
I saw a post where it tells that Chrome Frame ActiveX control can be used instead of iframe.
https://groups.google.com/forum/?fromgroups=#!topic/google-chrome-frame/2Jq-isAdi1k

Try serving up this code from a web server http://src.chromium.org/viewvc/chrome/trunk/src/chrome_frame/host.html

Related

In webbrowser control detect video url on iframe

in my webbrower control i navigate to a site with video inside. In a Windows phone 8.1 silverlight it is possibile capture the video source (MP4) of an iframe WITH Javascript?
Enable Scripting in your BrowserControl: https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.controls.webbrowser.isscriptenabled(v=vs.105).aspx
Inject your custom JavaScript to alter / read the DOM of the website containing the iframe: https://msdn.microsoft.com/en-us/library/windows/apps/ff402855(v=vs.105).aspx
you find great samples on each step, regarding your needs

Adding Video Element to WebBrowser in Delphi7 with IE9

I am working on development of HTML5 editor using delphi7. For this I have added WebBrowser component to my form.
I want to add video element in webbrowser. I have got IE9 and latest MSHTML_TLB.pas (activex control). It shows IHTMLVideo interface in MSHTML_TLB.pas but doesn't display video in webbrowser.
How to add video element to webbrowser?

youtube.com and html5 video tag

I have a question. I know youtube has supported html5 for some time, so I just tried disabling the adobe flash plugin and took a look at the page source. I found no video tag. Could anybody explain that?
Using chrome, after disabling Flash, I do get a warning when trying to watch videos ("You need Flash!"), but it detects that I don't have flash, and uses the HTML5 version instead. If you use Chrome, you can look at the DOM with the developer tools (F12), and you'll indeed find a video tag in the video-container div, e.g.
<video class="video-stream" x-webkit-airplay="allow" src="http://o-o.preferred.twtelecom-dfw1.v15.lscache5.c.youtube.com/videoplayback?sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cexpire&fexp=900161&itag=43&ip=207.0.0.0&signature=55FCBF36A597656FECBEC8E78051B3BD30EE8D97.8F8D573710D767EAF4429FBC54C940DF7611A1BE&sver=3&ratebypass=yes&source=youtube&expire=1330650696&key=yt1&ipbits=8&cp=U0hSRVZQTl9OUENOMl9OSlJHOlBlcHJOMW9PSHhH&id=381980b5e867a1c5" data-youtube-id="OBmAtehnocU"></video>
For almost everything Google does on the web they use javascript. Most likely what is happening is that they test the browser to make sure it supports HTML5 video, they then load the the video dynamically using javascript.
To verify, use a web browser tool to inspect the current html as it's shown, not as it's sent to the browser.
And as Marius noted, be sure to have HTML5 enabled

Display Message if Flash Doesn't Show in IE8

Okay...so apparently with the new update in IE8, it starts up with NO add-ons. Since I cannot program a code to turn on add-ons in a browser, I need to show a message when this occurs. Much like an image has alternative text in the event the image doesn't load...how can I add a message that states:
You are using Internet Explorer 8+ and need to turn on your add-ins like FLASH Player. This site is optimized for Mozilla Firefox or Google Chrome.
ANy suggestions?
Like this:
<object ...>
<param ... />
You are using a browser that does not have Flash player enabled.
Please turn on your Flash player plugin.
</object>
This will display the appropriate message to any visitor (whether they're using IE8 or another browser) if they have Flash disabled.
Alternatively, you could use swfobject.js or similar, which will insert the Flash movie into a <div>. And if Flash is unavailable, the content that is already inside the <div> will be displayed instead.

Flash z-index in iframe

so this is a problem:
when I'm using flash on website, and creating some dialog box which should be over all other elements I use just proper z-index for dialog box (in IE6 it's needed to set transparent wmode for flash). But flash programmer don't want to give me flash file and suggested to use iframe linking to his website.
on my website there is iframe
in iframe there is a flash object
when showing dialog box flash is over dialogbox (not depending of z-index and even wmode that I set by firebug)
I can't get touch with flash developer (anyway he sad that flash object will still remain on his website) so maybe you have any solution?
and weird thing:
- on some pc's it's working properly, one some not. what can be the reason?
Because Flash is being rendered by a plugin, I don't think changes made to the wmode property in Firebug will have immediate effect. You'll need to add the wmode="transparent" in the source and reload the page.