| Previous | Next |
| NS_S_WMPCORE_PLAYLIST_REPEAT_SECONDARY_SEGMENTS_IGNORED | NS_S_WMPCORE_PLAYLIST_NAME_AUTO_GENERATED |
NS_S_WMPCORE_COMMAND_NOT_AVAILABLE
Windows Media Player command is unavailable in the current state
NS_S_WMPCORE_COMMAND_NOT_AVAILABLE is HRESULT 856325 (0x000D1105) from Windows Media. The documented description is “Current state of WMP disallows calling this method or property.” The severity bit indicates a nonfailure result, but the value carries a specific condition that must not be collapsed into plain S_OK.
In the legacy Windows Media pipeline or Player state, this result means that current state of WMP disallows calling this method or property. Ordinary completion must not be inferred from it until the owning component’s state and outputs agree.
What must be true before accepting it
Verify that the UI or automation layer understands the state precondition and does not treat the disabled command as an execution failure. Only this contract check establishes that this result is safe for the caller’s next step.
Where the status is encountered
- This result can be returned during Windows Media source, reader, writer, or renderer callbacks; log the exact method and object state instead of interpreting the constant outside that contract.
- It can be returned during Windows Media Player SDK automation; log the exact method and object state instead of interpreting the constant outside that contract.
- It can be returned during media graph, playlist, image, rights, or buffering state; log the exact method and object state instead of interpreting the constant outside that contract.
Evidence to preserve
- Preserve requested method or property.
- Preserve player open and play state.
- Preserve media item and capability.
- Preserve state transition awaited.
- Preserve next invocation result.
Correct handling and recovery
Disable the command until the required player state exists, or transition state through documented actions. Do not retry continuously without a state change.
Before another call following it, confirm that completed side effects are idempotent or reconciled.
Practical scenario
A script requests seek before media is open. The player returns this status, so the UI waits for the open-state event before enabling the seek control.
Difference from nearby results
A nearby HRESULT can change object ownership, output validity, or the permitted next method.
References
- Microsoft: Windows Media Format SDK error codes — official Microsoft material relevant to this HRESULT.
- Microsoft: Windows Media Player SDK
- Microsoft: Windows Media Player buffering event
- Microsoft: HRESULT values
Looking for a different code? Search another status or error code.
