Before you start: create a System Restore point so you can undo changes, and sign in with an administrator account. Some steps need Command Prompt (Admin), which you can open with Win + X.
- Open Windows Media Player.
- Click on the Stream drop-down menu near the Menu bar.
- From the drop-down menu, choose Automatically allow devices to play my media. Media Streaming not working in Windows 10 allow devices to play my media
- Restart Windows Media Player and try again.
Still not fixed?
Run the general Windows repair sequence: install pending updates, then run DISM /Online /Cleanup-Image /RestoreHealth followed by sfc /scannow, and restart. If the problem started recently, restore from a System Restore point. You can also browse more Files, Speed & Maintenance guides.