Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Video from YouTube?
Fri, Jan 29 2016 11:07 AMPermanent Link

Radovan Šamudovský

Gas-Me-Ra s.r.o.

How can I show video from YouTube in EWB2 application?

Thank you
Fri, Jan 29 2016 2:27 PMPermanent Link

Alan Questell

Richmond Community College

One way is to use a TBrowser component on a form and in your code, set the DocumentText property to the YouTube code for the embedded video..as in:

Browser1.DocumentText := '<iframe width="560" height="315" src="https://www.youtube.com/embed/Cw9w1CZkTr0" frameborder="0" allowfullscreen></iframe>';



Radovan Šamudovský wrote:

How can I show video from YouTube in EWB2 application?

Thank you
Mon, Feb 1 2016 10:20 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Radovan

<< How can I show video from YouTube in EWB2 application? >>

As Alan indicated, you can just use a TBrowser control with the proper URL.  It's really the only way to embed YouTube videos.

Also, be sure that you use the YouTube URL with the "/embed/" identifier in the URL.  The normal URLs won't allow embedding.

Tim Young
Elevate Software
www.elevatesoft.com
Image