Platforms to show: All Mac Windows Linux Cross-Platform
Back to DesktopAVPlayerViewControlMBS control.
DesktopAVPlayerViewControlMBS.BoundsChanged
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
DesktopAVPlayerViewControlMBS.Closing
| Type | Topic | Version |
| event | AVFoundation | 21.5 |
The control is about to close.
In older Xojo versions, this event is named Close.
DesktopAVPlayerViewControlMBS.ConstructContextualMenu(base as DesktopMenuItem, x as Integer, y as Integer) As Boolean
| Type | Topic | Version |
| event | AVFoundation | 22.1 |
DesktopAVPlayerViewControlMBS.ContextualMenuItemSelected(selectedItem As DesktopMenuItem) As Boolean
| Type | Topic | Version |
| event | AVFoundation | 21.5 |
This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.
DesktopAVPlayerViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Allows you to restart any animation you may have stopped in the willShowContextualMenu event.
DesktopAVPlayerViewControlMBS.FocusLost
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The control lost focus.
In older Xojo versions, this event is named LostFocus.
This only fires if the control itself lost focus and not a sub control.
DesktopAVPlayerViewControlMBS.FocusReceived
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The control itself got focus.
In older Xojo versions, this event is named GotFocus.
This only fires if the control itself got focus and not a sub control.
DesktopAVPlayerViewControlMBS.FrameChanged
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This event notifies you, that the control changed it's bounding frame, which is position and/or size.
DesktopAVPlayerViewControlMBS.MenuBarSelected
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The event where you can enable menu items.
In older Xojo versions, this event is named EnableMenuItems.
DesktopAVPlayerViewControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
- The Action event, if any, will not execute and the state of the object will not change.
- You will receive the MouseDrag and MouseUp events.
DesktopAVPlayerViewControlMBS.MouseDrag(x as Integer, y as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.
DesktopAVPlayerViewControlMBS.MouseUp(x As Integer, y As Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Use the x and y parameters to determine if the mouse button was released within the control's boundaries.
DesktopAVPlayerViewControlMBS.Opening
| Type | Topic | Version |
| event | AVFoundation | 21.5 |
The control is about to was created and you can initialize it.
In older Xojo versions, this event is named Open.
DesktopAVPlayerViewControlMBS.playerViewDidStartPictureInPicture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
DesktopAVPlayerViewControlMBS.playerViewDidStopPictureInPicture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
DesktopAVPlayerViewControlMBS.playerViewFailedToStartPictureInPicture(error as NSErrorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
error: An error describing why it failed.
DesktopAVPlayerViewControlMBS.playerViewRestoreUserInterfaceForPictureInPictureStop as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Please return true if you restored it or false if not, so we can call completion handler passing the value.
Default is to pass true if you don't implement this event.
DesktopAVPlayerViewControlMBS.playerViewShouldAutomaticallyDismissAtPictureInPictureStart as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If you implement this, please return true or false.
By default we return false if you don't
DesktopAVPlayerViewControlMBS.playerViewWillStartPictureInPicture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
DesktopAVPlayerViewControlMBS.playerViewWillStopPictureInPicture
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
DesktopAVPlayerViewControlMBS.ScaleFactorChanged(NewFactor as double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Please invalidate any cached bitmaps or other relevant state.
DesktopAVPlayerViewControlMBS.TrimmingCompleted(result as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 21.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
DesktopAVPlayerViewControlMBS.willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | AVFoundation | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Your chance to modify the menu before it is shown, e.g. to add menu entries.
The items on this page are in the following plugins: MBS AVFoundation Plugin.