add the mediaDemo(Cpp code)