External.accountType

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

This topic describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The accountType property retrieves the account type of the current user.

window.external.accountType
      

Possible Values

This property is a read-only String that represents the account type. Strings that represent various account types are defined by the online store.

Remarks

This property retrieves the account type by calling the IWMPContentPartner::GetContentPartnerInfo method, which is implemented by the online store's plug-in. If the current user is logged in to the online store or the plug-in has cached the user's credentials, the getContentPartnerInfo method can determine the user's account type and return it to Windows Media Player. The account type is a string that Windows Media Player does not interpret. Rather, Windows Media Player passes the string from the online store's plug-in to the script on the online store's discovery page.

If the current user is not logged in to the online store and the online store's plug-in does not have cached credentials for the user, this property retrieves whatever string the getContentPartnerInfo method returns in that situation.

Requirements

Requirement Value
Version
Windows Media Player 11.
DLL
Wmp.dll

See also

External Object for Type 1 Online Stores

External.userLoggedIn