Not sure if it can be switched off at all. Rather activate "Offline Mode" to ensure that phone calls, texts, IM's and other annoyances do not bother you.
Hopefully part of the media player itself. If so, then MohammadAG is working on an opensource media player. Then we can talk