I took a quick look, and the process responsible seems to be "rygel". So when stopping media sharing, killing process rygel should do it. And it can be started with /usr/bin/rygel -p 57734 Unfortunately the status bar does not show these changes until going into Settings -> Media sharing.