Platforms to show: All Mac Windows Linux Cross-Platform

MFPMediaPlayerMBS.ClearMediaItem
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Clears the current media item.
Notes:
This method stops playback and releases the player object's references to the current media item.
This method completes asynchronously. When the operation completes, the MediaItemCleared event is invoked. The event type is

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Constructor(URL as String = "", StartPlayback as Boolean = false)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Creates a new instance of the MFPlay player object for audio only.
Notes:
URL: The string that contains the URL of a media file to open. This parameter can be empty. If the parameter is empty, StartPlayback must be false.
If this parameter is empty, you can open a URL later by calling CreateMediaItemFromURL.

StartPlayback: If true, playback starts automatically. If false, playback does not start until the application calls Play method. If URL is empty, this parameter is ignored.

Please call this in main thread of application only.

See also:

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Constructor(URL as String, StartPlayback as Boolean, control as RectControl)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Creates a new instance of the MFPlay player object.
Notes:
URL: The string that contains the URL of a media file to open. This parameter can be empty. If the parameter is empty, StartPlayback must be false.
If this parameter is empty, you can open a URL later by calling CreateMediaItemFromURL.

StartPlayback: If true, playback starts automatically. If false, playback does not start until the application calls Play method. If URL is empty, this parameter is ignored.

Control: A reference to a control where the video will appear. For audio-only playback, this parameter can be nil.

The control specified is used for the first selected video stream in the source.
If control is nil, MFPlay will not display any video.

Please call this in main thread of application only.

See also:

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Constructor(URL as String, StartPlayback as Boolean, Handle as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Creates a new instance of the MFPlay player object.
Notes:
URL: The string that contains the URL of a media file to open. This parameter can be empty. If the parameter is empty, StartPlayback must be false.
If this parameter is empty, you can open a URL later by calling CreateMediaItemFromURL.

StartPlayback: If true, playback starts automatically. If false, playback does not start until the application calls Play method. If URL is empty, this parameter is ignored.

Handle: A handle to a window or control where the video will appear. For audio-only playback, this parameter can be nil.

The window specified is used for the first selected video stream in the source.

If windows is nil, MFPlay will not display any video.

Please call this in main thread of application only.

See also:

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Constructor(URL as String, StartPlayback as Boolean, win as Window)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Function: Creates a new instance of the MFPlay player object.
Notes:
URL: The string that contains the URL of a media file to open. This parameter can be empty. If the parameter is empty, StartPlayback must be false.
If this parameter is empty, you can open a URL later by calling CreateMediaItemFromURL.

StartPlayback: If true, playback starts automatically. If false, playback does not start until the application calls Play method. If URL is empty, this parameter is ignored.

Win: A reference to a window where the video will appear. For audio-only playback, this parameter can be nil.

The window specified is used for the first selected video stream in the source.

If windows is nil, MFPlay will not display any video.

Please call this in main thread of application only.

See also:

Feedback, Comments & Corrections

MFPMediaPlayerMBS.CreateMediaItemFromURL(URL as String, Sync as Boolean = true, tag as Variant = nil) as MFPMediaItemMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Creates a media item from a URL.
Notes:
URL: String that contains the URL of a media file.
Sync: If true, the method blocks until it completes. If false, the method does not block and completes asynchronously.

If fSync is true, we return the item on success.

This method does not queue the media item for playback. To queue the item for playback, set MediaItem property.

The CreateMediaItemFromURL method can be called either synchronously or asynchronously:

If Sync is true, the method completes synchronously and returns the new item.
If Sync is false, the method completes asynchronously. When the operation completes, the MediaItemCreated event is invoked. The event call passes the new media item.

If you make multiple asynchronous calls to CreateMediaItemFromURL, they are not guaranteed to complete in the same order. Use the tag to pass data to the event.

Currently, this method raises an error if the URL specifies any of the following protocols: rtsp*, mms*, or mcast.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.FrameStep
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Steps forward one video frame.
Notes:
This method completes asynchronously. When the operation completes, the FrameStepped event is raised.

The player object does not support frame stepping during reverse playback (that is, while the playback rate is negative).

Feedback, Comments & Corrections

MFPMediaPlayerMBS.GetVideoSourceRect(byref Left as Single, byref Top as Single, byref Right as Single, byref Bottom as Single)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Gets the video source rectangle.
Notes:
This rectangle defines which portion of the video is displayed. It is specified in normalized coordinates, which are defined as follows:
The upper-left corner of the video image is (0, 0).
The lower-right corner of the video image is (1, 1).
If the source rectangle is {0, 0, 1, 1}, the entire image is displayed. This is the default value.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.InsertEffect(CLSID as String, isOptional as boolean = false) as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Applies an audio or video effect to playback.
Notes:
Please pass class id of a Media Foundation transform (MFT) that implements the effect. MFTs expose the IMFTransform interface.

isOptional specifies whether the effect is optional.

ValueMeaning
TrueThe effect is optional. If the MFPlay player object cannot add the effect, it ignores the effect and continues playback.
FalseIf the MFPlay player object cannot add the effect, a playback error occurs.

Returns index of the effect, which you pass for RemoveEffect later if needed.

The effect is applied to any media items set after the method is called. It is not applied to the current media item.

For each media item, the effect is applied to the first selected stream of the matching type (audio or video). If a media item has two selected streams of the same type, the second stream does not receive the effect. The effect is ignored if the media item does not contain a stream that matches the effect type. For example, if you set a video effect and play a file that contains just audio, the video effect is ignored, although no error is raised.

The effect is applied to all subsequent media items, until the application removes the effect. To remove an effect, call RemoveEffect or RemoveAllEffects.

If you set multiple effects of the same type (audio or video), they are applied in the same order in which you call InsertEffect.

Remote Playback Optimizations

Audio and video effects might be incompatible with optimizations that are used for remote playback. The following remarks apply only to audio or video effects that are actually used during playback:
If you mark an audio or video effect as required, by setting fOptional to false, MFPlay disables remote playback optimizations.
Otherwise, if all audio/video effects are marked as optional, MFPlay might drop the effects, in order to enable remote playback optimizations.
In other words, required effects have priority over remote optimizations, but optional effects do not.

Non-audio, non-video effects do not affect remote optimizations. Also, if you insert a required effect but the source does not contain any streams of that type, remote optimizations are not disabled.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Pause
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Pauses playback.
Notes:
While playback is paused, the most recent video frame is displayed, and audio is silent.

This method completes asynchronously. When the operation completes, the application's Paused event is invoked.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Play
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Starts playback.
Notes: This method completes asynchronously. When the operation completes, the Started event is raised.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.RemoveAllEffects
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Removes all effects that were added with the InsertEffect method.
Notes: The change applies to the next media item that is set on the player. The effects are not removed from the current media item.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.RemoveEffect(Handle as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Removes an effect that was added with the InsertEffect method.
Notes:
Please pass the number returned by InsertEffect.

The change applies to the next media item that is set on the player. The effect is not removed from the current media item.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.SetVideoSourceRect(Left as Single, Top as Single, Right as Single, Bottom as Single)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Sets the video source rectangle.
Notes:
MFPlay clips the video to this rectangle and stretches the rectangle to fill the video window.

This rectangle defines which portion of the video is displayed. It is specified in normalized coordinates, which are defined as follows:
The upper-left corner of the video image is (0, 0).
The lower-right corner of the video image is (1, 1).

To display the entire image, set the source rectangle to {0, 0, 1, 1}. This is the default value.

MFPlay stretches the source rectangle to fill the entire video window. By default, MFPlay maintains the source's correct aspect ratio, letterboxing if needed. The letterbox color is controlled by the BorderColor property.

This method fails if no media item is currently set, or if the current media item does not contain video.
To set the video position before playback starts, call this method inside your MediaItemSet event.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Shutdown
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Shuts down the MFPlay player object and releases any resources the object is using.
Notes:
After this method is called, most IMFPMediaPlayer methods raise exception about shutdown. Also, any media items created from this instance of the player object are invalidated and most IMFPMediaItem methods also raise exceptions.

The player object automatically shuts itself down when its reference count reaches zero. You can use the Shutdown method to shut down the player before all of the references have been released.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.Stop
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Stops playback.
Notes: This method completes asynchronously. When the operation completes, the Stopped event is raised.

Feedback, Comments & Corrections

MFPMediaPlayerMBS.UpdateVideo
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Media Foundation MBS WinFrameworks Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Updates the video frame.
Notes: This method makes sure the video is updated now, not later.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS WinFrameworks Plugin.

The biggest plugin in space...




Links
MBS FileMaker Plugins

Start Chat