NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: springguy on June 27, 2012, 02:48:58 AM

Title: Display Youtube Videos?
Post by: springguy on June 27, 2012, 02:48:58 AM
Bruce,
I seem to remember you making a comment recently that you are working on a template option to make it easy to drop in a Youtube video in a NT generated page.  Is that true, or just wishful thinking on my part?
:-)

I have a customer that wants to be able to play a video (training video) based on the youtube video URL that is kept in a database field.
Mike Springer
Title: Re: Display Youtube Videos?
Post by: Bruce on June 27, 2012, 04:39:54 AM
while I think a template in the future will be a good idea, it's very possible to embed a you-tube video on a page now.
I've updated the "Hyperlinks" example (example 30) for the 6.35 build.
This example has a "media" browse, and shows, amongst other things, a video embedded on a form.

cheers
Bruce
Title: Re: Display Youtube Videos?
Post by: springguy on June 27, 2012, 06:33:39 AM
Thanks Bruce - you are always a step (or many) ahead!
Mike
Title: Re: Display Youtube Videos?
Post by: peterH on June 27, 2012, 11:02:54 AM
Now all we need is that "Make coffee" button and we'll be ready for NT7  ;D

Peter
Title: Re: Display Youtube Videos?
Post by: springguy on September 21, 2012, 04:47:16 PM
Bruce,
I'm not "getting" this.  When I run Example 30, I see it is a browse and form looking at a media file  and in the file is a text field that allows HTML.  There is html code in that field to presumably allow a youtube video to be played on the browser.  But, for the life of me, I don't see anything that will allow the user to "click a button or link" that will play the video.

What am I missing?
Mike Springer
Title: Re: Display Youtube Videos?
Post by: springguy on September 22, 2012, 02:32:16 AM
I discovered that in example 30, that I had to check the "allow unsafe xhtml" box in order for the app to display the video rather than just showing the xhtml from the data field.  I presume that is because the example code uses iFrame?

Looks OK now!
Mike
Title: Re: Display Youtube Videos?
Post by: Bruce on September 24, 2012, 12:03:58 AM
yes.