If I understand you correctly, you want NP to prefer open standard formats for audio and video.
This can be achieved by setting WebM as the preferred format in the respective setting in the video and audio section.
I'm not sure how switching between video+audio and audio-only is supposed to relate to that.
The choice of codec has nothing to do with software freedom though really. Both are handled by closed and open software equally.