« Castle Ehrenburg | Home | MBS Xojo / Real Studi… »

Tip of the day: Play video in interactive container


For normal containers, we already have MovieView functions. With those functions you can for example play movies inside the container.
But with an interactive containers, Filemaker 12 actually uses a web view. There our MovieView functions will not work. But the Webviewer functions work.

MBS( "WebView.RunJavaScript" ; "movie"; "document.getElementsByTagName('video')[0].play();" )

This line will play the video. The container field on the layout must be named "movie" and we simply play the first video there. Of course you can also use other javascript video functions. like calling pause() function or querying duration or currentTime properties.
31 07 13 - 16:39
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.