add MagPlayer source code