add onMessage to music and video