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
Tables1
Relationships0
Layouts1
Scripts8
Value Lists0
Custom Functions0
Custom Menus33
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
AVPlayer
5 fields defined, 1 record
AVPlayer

Fields

Table Name: AVPlayer - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ContainerNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      DurationNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          FilePathNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              RateNormal, NumberAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  VolumeNormal, NumberAuto-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 PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesField FormatField BehaviorQuick 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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 PropertiesCoordinatesScript/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 NameLoad Player
                      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("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 NameCloseMovie
                              Run script with full access privilegesOff
                              Include In MenuYes
                              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 NamePlay
                                      Run script with full access privilegesOff
                                      Include In MenuYes
                                      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 NamePause
                                                      Run script with full access privilegesOff
                                                      Include In MenuYes
                                                      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 NameSetVolume
                                                                      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: [SetVolume]Next Script: [Clear]
                                                                                  Script NameSetRate
                                                                                  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: [SetRate]Next Script: [AddView]
                                                                                              Script NameClear
                                                                                              Run script with full access privilegesOff
                                                                                              Include In MenuYes
                                                                                              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 NameAddView
                                                                                                          Run script with full access privilegesOff
                                                                                                          Include In MenuYes
                                                                                                          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.SetAutoResizingMask"; $$Player; 4+8 ) ]
                                                                                                            • 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: