You can confugure Media Player to automatically stop playback when switching user:
- Click on the tools menu > Options > Player
- In the Player settings section , check "Stop playback when switching to a different user"
This document, titled « Windows Media Player - Stop playback when switching user », is available under the Creative Commons
license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM