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

MBS FileMaker Plugin Example Databases

AVPlayer

All examples are included with download of MBS FileMaker Plugin.

AVPlayer.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 8
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Minimalistisch
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Comments
Occurrences in Relationship Graph
AVPlayer
5 fields defined, 1 record
AVPlayer

Fields

Table Name: AVPlayer - 5 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
Container Normal, Binary Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      Duration Normal, Number Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          FilePath Normal, Text Auto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              Rate Normal, Number Auto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  Volume Normal, Number Auto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German

                      Layout Objects: AVPlayer

                      Regular Fields

                      Field Name: AVPlayer::Container
                      Field Properties Coordinates Field Format Field Behavior Quick Find
                      • Top: 27 pt
                      • Left: 120 pt
                      • Bottom: 152 pt
                      • Right: 373 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
                      No

                      Field Name: AVPlayer::Duration
                      Field Properties Coordinates Field Format Field Behavior Quick Find
                      • Top: 264 pt
                      • Left: 151 pt
                      • Bottom: 283 pt
                      • Right: 230 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

                      Field Name: AVPlayer::FilePath
                      Field Properties Coordinates Field Format Field Behavior Quick Find
                      • Top: 156 pt
                      • Left: 120 pt
                      • Bottom: 175 pt
                      • Right: 373 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

                      Field Name: AVPlayer::Rate
                      Field Properties Coordinates Field Format Field Behavior Quick Find
                      • Top: 300 pt
                      • Left: 151 pt
                      • Bottom: 319 pt
                      • Right: 230 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

                      Field Name: AVPlayer::Volume
                      Field Properties Coordinates Field Format Field Behavior Quick Find
                      • Top: 336 pt
                      • Left: 151 pt
                      • Bottom: 355 pt
                      • Right: 230 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 Properties Coordinates Script/Script Step
                        Type:
                      • Text: Load Player
                      • Top: 103 pt
                      • Left: 408 pt
                      • Bottom: 134 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Load Player” ]

                      Scripts:


                      Button Properties Coordinates Script/Script Step
                        Type:
                      • Text: Close
                      • Top: 144 pt
                      • Left: 408 pt
                      • Bottom: 175 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “CloseMovie” ]

                      Scripts:


                      Button Properties Coordinates Script/Script Step
                        Type:
                      • Text: Add Player View
                      • Top: 181 pt
                      • Left: 408 pt
                      • Bottom: 212 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “AddView” ]

                      Scripts:


                      Button Properties Coordinates Script/Script Step
                        Type:
                      • Text: Play
                      • Top: 218 pt
                      • Left: 408 pt
                      • Bottom: 249 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Play” ]

                      Scripts:


                      Button Properties Coordinates Script/Script Step
                        Type:
                      • Text: Pause
                      • Top: 255 pt
                      • Left: 408 pt
                      • Bottom: 286 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Pause” ]

                      Scripts:


                      Button Properties Coordinates Script/Script Step
                        Type:
                      • Text: Set Rate
                      • Top: 294 pt
                      • Left: 408 pt
                      • Bottom: 325 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Pause” ]

                      Scripts:


                      Button Properties Coordinates Script/Script Step
                        Type:
                      • Text: Set Volume
                      • Top: 330 pt
                      • Left: 408 pt
                      • Bottom: 361 pt
                      • Right: 601 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Pause” ]

                      Scripts:


                      Script Hierarchy

                      Load Player
                      CloseMovie
                      Play
                      Pause
                      SetVolume
                      SetRate
                      Clear
                      AddView

                      Next Script: [CloseMovie]
                      Script Name Load Player
                      Run script with full access privileges Off
                      Siri Shortcut Visible Off
                      Include In Menu Yes
                      Layouts that use this script
                      Scripts that use this script
                        Script Definition
                        Script Steps
                        • Set Variable [ $r; Value:MBS("Trace") ]
                        • Perform Script [ “CloseMovie” ]
                        • If [ IsEmpty(AVPlayer::Container) ]
                        • Set Variable [ $player; Value:MBS("AVPlayer.OpenFile"; AVPlayer::FilePath) ]
                        • Else [ ]
                        • Set Variable [ $player; Value:MBS("AVPlayer.OpenContainer"; AVPlayer::Container) ]
                        • End If
                        • If [ MBS("IsError") ]
                        • Show Custom Dialog [ Title: "Error loading audio file."; Message: $player; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                        • Exit Script [ ]
                        • End If
                        • // Pause/Resume Script [ Duration (seconds): ,1 ]
                        • Set Field [ AVPlayer::Duration; MBS("AVPlayer.GetDuration"; $player) ]
                        • Set Field [ AVPlayer::Rate; MBS("AVPlayer.GetRate"; $Player) ]
                        • Set Field [ AVPlayer::Volume; MBS("AVPlayer.GetVolume"; $Player) ]
                        • Set Variable [ $$player; Value:$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: [Load Player] Next Script: [Play]
                              Script Name CloseMovie
                              Run script with full access privileges Off
                              Siri Shortcut Visible Off
                              Include In Menu Yes
                              Layouts that use this script
                              Scripts that use this script
                              Script Definition
                              Script Steps
                              • #Close last movie if it was open.
                              • If [ Length($$Player)>0 ]
                              • Set Variable [ $r; Value:MBS("AVPlayer.Release"; $$Player) ]
                              • Set Variable [ $$Player; Value:"" ]
                              • End If
                              • Set Field [ AVPlayer::Duration; "" ]
                              • Set Field [ AVPlayer::Rate; "" ]
                              • Set Field [ AVPlayer::Volume; "" ]
                              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: [CloseMovie] Next Script: [Pause]
                                      Script Name Play
                                      Run script with full access privileges Off
                                      Siri Shortcut Visible Off
                                      Include In Menu Yes
                                      Layouts that use this script
                                      Scripts that use this script
                                        Script Definition
                                        Script Steps
                                        • If [ $$Player ≠ "" ]
                                        • Set Variable [ $r; Value:MBS("AVPlayer.Play"; $$Player) ]
                                        • Else [ ]
                                        • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                        • 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: [Play] Next Script: [SetVolume]
                                                      Script Name Pause
                                                      Run script with full access privileges Off
                                                      Siri Shortcut Visible Off
                                                      Include In Menu Yes
                                                      Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • If [ Length($$Player)>0 ]
                                                        • Set Variable [ $r; Value:MBS("AVPlayer.Pause"; $$Player) ]
                                                        • Else [ ]
                                                        • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                        • 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: [Pause] Next Script: [SetRate]
                                                                      Script Name SetVolume
                                                                      Run script with full access privileges Off
                                                                      Siri Shortcut Visible Off
                                                                      Include In Menu Yes
                                                                      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: [SetVolume] Next Script: [Clear]
                                                                                  Script Name SetRate
                                                                                  Run script with full access privileges Off
                                                                                  Siri Shortcut Visible Off
                                                                                  Include In Menu Yes
                                                                                  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: [SetRate] Next Script: [AddView]
                                                                                              Script Name Clear
                                                                                              Run script with full access privileges Off
                                                                                              Siri Shortcut Visible Off
                                                                                              Include In Menu Yes
                                                                                              Layouts that use this script
                                                                                                Scripts that use this script
                                                                                                  Script Definition
                                                                                                  Script Steps
                                                                                                  • Set Field [ AVPlayer::Container; "" ]
                                                                                                  • Set Field [ AVPlayer::Duration; "" ]
                                                                                                  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: [Clear]
                                                                                                          Script Name AddView
                                                                                                          Run script with full access privileges Off
                                                                                                          Siri Shortcut Visible Off
                                                                                                          Include In Menu Yes
                                                                                                          Layouts that use this script
                                                                                                          Scripts that use this script
                                                                                                            Script Definition
                                                                                                            Script Steps
                                                                                                            • If [ $$Player = "" ]
                                                                                                            • Show Custom Dialog [ Message: "Please open Movie first!"; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                            • Exit Script [ ]
                                                                                                            • End If
                                                                                                            • Set Variable [ $r; Value:MBS( "AVPlayer.AddView"; $$Player; Get(WindowName); "placeholder") ]
                                                                                                            • Set Variable [ $r; Value:MBS( "AVPlayer.SetControlsStyle"; $$Player; "Inline" ) ]
                                                                                                            • Set Variable [ $r; Value:MBS( "AVPlayer.SetVisible"; $$Player; 1 ) ]
                                                                                                            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: AVPlayer

                                                                                                                          Used functions: