Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Windows Player

All examples are included with download of MBS FileMaker Plugin.

Windows Player.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts10
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Windows Player
1 field defined, 1 record
Windows Player

Fields

Table Name: Windows Player - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PathNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German

      Layout Objects: Windows Player

      Regular Fields

      Field Name: Windows Player::Path
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 58 pt
      • Left: 57 pt
      • Bottom: 80 pt
      • Right: 748 pt
      • Anchoring: Left, Top
      Field Format:
      • Edit Box
      Field Behavior:
      • Allow field to be entered: In Find mode, In Browse mode
      • Touch keyboard type: Default for Data Type
      • Go to next field using: Tab key
      Yes

      Buttons

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Select Movie File
      • Top: 57 pt
      • Left: 776 pt
      • Bottom: 80 pt
      • Right: 985 pt
      • Anchoring: Left, Top
      Perform Script [ “Open Video” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Play
      • Top: 528 pt
      • Left: 9 pt
      • Bottom: 564 pt
      • Right: 169 pt
      • Anchoring: Left, Top
      Perform Script [ “Play” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Pause
      • Top: 528 pt
      • Left: 185 pt
      • Bottom: 564 pt
      • Right: 345 pt
      • Anchoring: Left, Top
      Perform Script [ “Pause” ]

      Scripts:


      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: 10 seconds forward
      • Top: 528 pt
      • Left: 361 pt
      • Bottom: 564 pt
      • Right: 521 pt
      • Anchoring: Left, Top
      Perform Script [ “SetPosition 10 seconds forward” ]

      Scripts:


      Script Hierarchy

      Open Video
      Load Movie
      Check Position
      Playback Done
      Close Video
      Play
      Pause
      SetPosition 10 seconds forward
      Hide
      Show

      Next Script: [Load Movie]
      Script NameOpen Video
      Run script with full access privilegesOff
      Include In MenuYes
      Layouts that use this script
      Scripts that use this script
        Script Definition
        Script Steps
        Fields used in this script
        Scripts used in this script
        Layouts used in this script
          Tables used in this script
          Table occurrences used by this script
          Custom Functions used by this script
            Custom menu set used by this script

              Previous Script: [Open Video]Next Script: [Check Position]
              Script NameLoad Movie
              Run script with full access privilegesOff
              Include In MenuYes
              Layouts that use this script
                Scripts that use this script
                Script Definition
                Script Steps
                • #Create new player and load video
                • Set Variable [ $URL; Value:MBS( "Path.FilePathToFileURL"; Windows Player::Path) ]
                • Set Variable [ $$player; Value:MBS("WMFP.Create"; $URL; 0; "Player") ]
                • If [ MBS("IsError") ]
                • Show Custom Dialog [ Title: "Failed to load video"; Message: $$player; Default Button: “OK”, Commit: “Yes” ]
                • Set Variable [ $$player; Value:"" ]
                • Else
                • #Little pause to let loading happen in background
                • Pause/Resume Script [ Duration (seconds): ,1 ]
                • Set Variable [ $r; Value:MBS("WMFP.SetPlaybackEndedScriptTrigger"; $$player; Get(FileName); "Playback Done") ]
                • Set Variable [ $r; Value:MBS("WMFP.Play"; $$player) ]
                • End If
                Fields used in this script
                Scripts used in this script
                  Layouts used in this script
                    Tables used in this script
                    Table occurrences used by this script
                    Custom Functions used by this script
                      Custom menu set used by this script

                        Previous Script: [Load Movie]Next Script: [Playback Done]
                        Script NameCheck Position
                        Run script with full access privilegesOff
                        Include In MenuYes
                        Layouts that use this script
                          Scripts that use this script
                            Script Definition
                            Script Steps
                            • Show Custom Dialog [ Title: "Position"; Message: Round(MBS("WMFP.GetPosition"; $$player);1) & " of " & Round(MBS("WMFP.GetDuration"; $$player);1) & ¶ & MBS("WMFP.GetState"; $$player); Default Button: “OK”, Commit: “Yes” ]
                            Fields used in this script
                              Scripts used in this script
                                Layouts used in this script
                                  Tables used in this script
                                    Table occurrences used by this script
                                      Custom Functions used by this script
                                        Custom menu set used by this script

                                          Previous Script: [Check Position]Next Script: [Close Video]
                                          Script NamePlayback Done
                                          Run script with full access privilegesOff
                                          Include In MenuYes
                                          Layouts that use this script
                                            Scripts that use this script
                                              Script Definition
                                              Script Steps
                                              • Show Custom Dialog [ Message: "Finished video"; Default Button: “OK”, Commit: “Yes” ]
                                              Fields used in this script
                                                Scripts used in this script
                                                  Layouts used in this script
                                                    Tables used in this script
                                                      Table occurrences used by this script
                                                        Custom Functions used by this script
                                                          Custom menu set used by this script

                                                            Previous Script: [Playback Done]Next Script: [Play]
                                                            Script NameClose Video
                                                            Run script with full access privilegesOff
                                                            Include In MenuYes
                                                            Layouts that use this script
                                                              Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • #Release old player
                                                              • If [ Length($$Player) > 0 ]
                                                              • Set Variable [ $r; Value:MBS("WMFP.Release"; $$player) ]
                                                              • Set Variable [ $$player; Value:"" ]
                                                              • End If
                                                              Fields used in this script
                                                                Scripts used in this script
                                                                  Layouts used in this script
                                                                    Tables used in this script
                                                                      Table occurrences used by this script
                                                                        Custom Functions used by this script
                                                                          Custom menu set used by this script

                                                                            Previous Script: [Close Video]Next Script: [Pause]
                                                                            Script NamePlay
                                                                            Run script with full access privilegesOff
                                                                            Include In MenuYes
                                                                            Layouts that use this script
                                                                            Scripts that use this script
                                                                              Script Definition
                                                                              Script Steps
                                                                              • Set Variable [ $r; Value:MBS("WMFP.Play"; $$player) ]
                                                                              Fields used in this script
                                                                                Scripts used in this script
                                                                                  Layouts used in this script
                                                                                    Tables used in this script
                                                                                      Table occurrences used by this script
                                                                                        Custom Functions used by this script
                                                                                          Custom menu set used by this script

                                                                                            Previous Script: [Play]Next Script: [SetPosition 10 seconds forward]
                                                                                            Script NamePause
                                                                                            Run script with full access privilegesOff
                                                                                            Include In MenuYes
                                                                                            Layouts that use this script
                                                                                            Scripts that use this script
                                                                                              Script Definition
                                                                                              Script Steps
                                                                                              • Set Variable [ $r; Value:MBS("WMFP.Pause"; $$player) ]
                                                                                              Fields used in this script
                                                                                                Scripts used in this script
                                                                                                  Layouts used in this script
                                                                                                    Tables used in this script
                                                                                                      Table occurrences used by this script
                                                                                                        Custom Functions used by this script
                                                                                                          Custom menu set used by this script

                                                                                                            Previous Script: [Pause]Next Script: [Hide]
                                                                                                            Script NameSetPosition 10 seconds forward
                                                                                                            Run script with full access privilegesOff
                                                                                                            Include In MenuYes
                                                                                                            Layouts that use this script
                                                                                                            Scripts that use this script
                                                                                                              Script Definition
                                                                                                              Script Steps
                                                                                                              Fields used in this script
                                                                                                                Scripts used in this script
                                                                                                                  Layouts used in this script
                                                                                                                    Tables used in this script
                                                                                                                      Table occurrences used by this script
                                                                                                                        Custom Functions used by this script
                                                                                                                          Custom menu set used by this script

                                                                                                                            Previous Script: [SetPosition 10 seconds forward]Next Script: [Show]
                                                                                                                            Script NameHide
                                                                                                                            Run script with full access privilegesOff
                                                                                                                            Include In MenuYes
                                                                                                                            Layouts that use this script
                                                                                                                              Scripts that use this script
                                                                                                                                Script Definition
                                                                                                                                Script Steps
                                                                                                                                • #Hide player, e.g. when switching layouts or registers
                                                                                                                                • Set Variable [ $r; Value:MBS("WMFP.SetVisible"; $$player; 0) ]
                                                                                                                                Fields used in this script
                                                                                                                                  Scripts used in this script
                                                                                                                                    Layouts used in this script
                                                                                                                                      Tables used in this script
                                                                                                                                        Table occurrences used by this script
                                                                                                                                          Custom Functions used by this script
                                                                                                                                            Custom menu set used by this script

                                                                                                                                              Previous Script: [Hide]
                                                                                                                                              Script NameShow
                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                              Include In MenuYes
                                                                                                                                              Layouts that use this script
                                                                                                                                                Scripts that use this script
                                                                                                                                                  Script Definition
                                                                                                                                                  Script Steps
                                                                                                                                                  Fields used in this script
                                                                                                                                                    Scripts used in this script
                                                                                                                                                      Layouts used in this script
                                                                                                                                                        Tables used in this script
                                                                                                                                                          Table occurrences used by this script
                                                                                                                                                            Custom Functions used by this script
                                                                                                                                                              Custom menu set used by this script

                                                                                                                                                                Download example: Windows Player

                                                                                                                                                                Used functions: