Brian Dunning's FileMaker Custom Functions

YTobject ( yturl ; w ; align )

Easily insert YouTube videos in Web Viewers and in text fields that are used to drive dynamic web sites

  Average rating: 4.1 (41 votes) Log in to vote

Oliver Reid   Oliver Reid
First Growth Management LLC
http://firstgm.com

Share on Facebook Share on Twitter

  Sample input:
  Sample output:
data:text/html,

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

See comments in function definition.

The function automatically sets padding and border values so that if inserted into a text field which is delivered to a dynamic web page the Video player is appropriately sized and placed with text.

Thus an interface on the FM side can easily insert videos in web news stories, etc.

 

Comments

Bob Harlow   Bob Harlow, Greenbrae, CA
Oct 19, 2011
Has anybody done this for private videos stored on Vimeo? Those urls don't seem to work as well in FileMaker web viewers.
 
Jason   Jason, Edmonton, AB
Feb 27, 2012
Thanks very much for this. Worked like a charm (after I saw I only needed the URL from the YT embed code)

Kudos!
 
Melvin Simmons   Melvin Simmons, Chicago, IL
Jan 27, 2013
I just have a couple of questions about how to install the function.

1. Do I first create a web viewer on a layout and call YTobject from within a custom URL?

I would like to use this within FM GO locally on an iPad or iPhone.
2. Could you give a few more details on how to implement this?

Have tried putting a web viewer on a layout to display YouTube videos. The video will not center properly. That's why I want to use your function.

Thanks in Advance

Melvin Simmons
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.