How to embed YouTube videos in newer versions of Delphi? -


i'm trying load youtube video twebbrowser in delphi xe7 , i'm getting error says this:

adobe flash player or html5 supported browser required video playback.
get latest flash player
learn more upgrading html5 browser

i can load normal html fine.

the examples i've found posted here earlier older versions of delphi, i'm wondering if issue newer versions, or twebbrowser, or in environment (vmware 7 windows 7).

edit: objective able load , play video url, youtube video. solutions other twebbrowser fine, if can run cross-platform.

you wondering whether problems relate delphi version. webbrowser control system control. delphi version not relevant because service provided underlying system. if has changed way tube delivers videos.

if crafting html embeds remote video should follow latest documentation tube how should done. don't use years old delphi specific articles guide. use modern articles specific latest technology used tube.

i have feeling, although don't state in question, using old , possibly deprecated method embed tube video. use iframe described here: http://www.w3schools.com/html/html_youtube.asp


adobe flash player or html5 supported browser required video playback.

your webbrowser control will, in absence of taking specific steps otherwise, using legacy ie browser engine. won't have html5 support. , perhaps not flash support, if tube still prepared serve videos flash. nowadays html5 preferred. not least because modern browser support out of box , there no need third party flash plugin installation.

one way opt in using modern html5 browser webbrowser control make explicit registry settings (browser feature emulation), , perhaps specify doctype. more details here: how have delphi twebbrowser component running in ie9 mode? although question asks ie9, documentation links in answer provide details other ie versions.

if don't have control on html document need use above method.

on other hand, if control content of html document there way. can place

<meta http-equiv="x-ua-compatible" content="ie=edge" /> 

as first item in page's <head>. meaning of edge latest version of ie. if wish target specific version, e.g. ie9 use:

<meta http-equiv="x-ua-compatible" content="ie=9" /> 

more info on here:

older versions of ie not support header , if need cater them browser feature emulation in registry. @whosrdaddy , @tlama in comments, seems ie8 introduced support x-ua-compatible.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -