Platforms to show: All Mac Windows Linux Cross-Platform
AVPlayerViewControlMBS control
See also desktop control: DesktopAVPlayerViewControlMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
control | AVFoundation | MBS AVFoundation Plugin | 18.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
AVPlayerView is a subclass of NSView that can be used to display the visual content of an AVPlayer object and the standard playback controls.
MBS Plugin wraps this as a control for Xojo.
Please notice this is 64-bit only and requires MacOS 10.9 or newer.
- 26 events
- event BoundsChanged
- event Close
- event Closing
- event ConstructContextualMenu(base as MenuItem, x as Integer, y as Integer) as Boolean
- event ContextualMenuAction(hitItem as MenuItem) as Boolean
- event EnableMenuItems
- event FocusLost
- event FocusReceived
- event FrameChanged
- event GotFocus
- event LostFocus
- event MenuBarSelected
- event MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
- event MouseDrag(x as Integer, y as Integer)
- event MouseUp(x As Integer, y As Integer)
- event Open
- event Opening
- event playerViewDidStartPictureInPicture
- event playerViewDidStopPictureInPicture
- event playerViewFailedToStartPictureInPicture(error as NSErrorMBS)
- event playerViewRestoreUserInterfaceForPictureInPictureStop as Boolean
- event playerViewShouldAutomaticallyDismissAtPictureInPictureStart as Boolean
- event playerViewWillStartPictureInPicture
- event playerViewWillStopPictureInPicture
- event ScaleFactorChanged(NewFactor as double)
- event TrimmingCompleted(result as Integer)
- 15 properties
- property actionPopUpButtonMenu as NSMenuMBS
- property allowsPictureInPicturePlayback as Boolean
- property canBeginTrimming as Boolean
- property contentOverlayView as NSViewMBS
- property controlsStyle as Integer
- property player as AVPlayerMBS
- property readyForDisplay as Boolean
- property showsFrameSteppingButtons as Boolean
- property showsFullScreenToggleButton as Boolean
- property showsSharingServiceButton as Boolean
- property showsTimecodes as Boolean
- property updatesNowPlayingInfoCenter as Boolean
- property videoBounds as NSRectMBS
- property videoGravity as String
- property View as NSViewMBS
- 2 methods
- method beginTrimming
- method flashChapterNumber(chapterNumber as Integer, chapterTitle as String)
- shared method Available as Boolean
- 7 constants
Control Styles
Constant | Value | Description |
---|---|---|
ControlsStyleDefault | 1 |
The default controls pane is associated with the view. |
ControlsStyleFloating | 2 |
The floating controls pane is associated with the view. |
ControlsStyleInline | 1 |
The inline controls pane is associated with the view. |
ControlsStyleMinimal | 3 |
The minimal controls pane is associated with the view. |
ControlsStyleNone | 0 |
No controls pane is associated with the view. |
Trim Results
Constant | Value | Description |
---|---|---|
TrimCancelButton | 1 |
The user selected the Cancel button. |
TrimOKButton | 0 |
The user selected the Trim button. |
Some examples using this control:
Blog Entries
- News from the MBS Xojo Plugins in version 21.5
- New desktop controls
- New in the MBS Xojo Plugins Version 20.2
- MBS Xojo Plugins, version 20.2pr1
- MBS Xojo Plugins 18.3
- MBS Xojo Plugins, version 18.3pr2
Videos
- Presentation from Munich conference about MBS Plugins.
- Presentation from Xojo Developer Conference 2019 in Miami.
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVCaptureViewControlMBS - AVRoutePickerViewControlMBS
