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

WMFP.SetPosition

Sets the position.

Component Version macOS Windows Linux Server iOS SDK
WMFP 10.0 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WMFP.SetPosition"; Player; Value )   More

Parameters

Parameter Description Example
Player The reference number for the Windows Media Foundation Player object. $$Player
Value The new position. $pos

Result

Returns OK or error.

Description

Sets the position.
Pass new position in seconds.

Examples

Jump 10 seconds forward:

Set Variable [ $r ; Value: MBS("WMFP.SetPosition"; $$player; 10 + MBS("WMFP.GetPosition"; $$player)) ]

Jump back to start:

Set Variable [ $r ; Value: MBS("WMFP.SetPosition"; $$player; 0) ]

See also

Example Databases

This function checks for a license.

Created 25th December 2019, last changed 25th December 2019


WMFP.SetPlaybackEndedScriptTrigger - WMFP.SetRate