NetTalk Central

Author Topic: Display Youtube Videos?  (Read 4163 times)

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Display Youtube Videos?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Display Youtube Videos?
« Reply #1 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

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Re: Display Youtube Videos?
« Reply #2 on: June 27, 2012, 06:33:39 AM »
Thanks Bruce - you are always a step (or many) ahead!
Mike

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Display Youtube Videos?
« Reply #3 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

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Re: Display Youtube Videos?
« Reply #4 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

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Re: Display Youtube Videos?
« Reply #5 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Display Youtube Videos?
« Reply #6 on: September 24, 2012, 12:03:58 AM »
yes.